FILE *mysql;
mysql = fopen("mysql.txt","rw");
char buffer[1000];
if (read(mysql,buffer,sizeof(buffer)) > 0) {
printf ("%s\n",buffer);
}
Type: Posts; User: hoho
FILE *mysql;
mysql = fopen("mysql.txt","rw");
char buffer[1000];
if (read(mysql,buffer,sizeof(buffer)) > 0) {
printf ("%s\n",buffer);
}
Thanks for your replies, still no luck even if I do escape all ' i.e.
sprintf(query,"insert into history values(\'\',curdate(),curtime(),\'%d\',\'%d\',\'%s\',\'%d\'\)...
Hi! I have the following source code which seems to compile fine without any errors, however when I try to execute the binary, I get a core dump. The strace output doesn't lead me to think of any...