K
Kevin C.
Never mind my last post about pointer subtraction, I traced the code and
found the offender to be strcat.
char call[] = "del ";
system(strcat(strcat(call, del->table_name), ".tab"));
After this line, trying to dereference del results in page faults or
garbage. This makes me wonder how strcat is implemented, in terms of what it
actually does with the arguments. Seems like it actually moves the pointer.
Anyone know?
found the offender to be strcat.
char call[] = "del ";
system(strcat(strcat(call, del->table_name), ".tab"));
After this line, trying to dereference del results in page faults or
garbage. This makes me wonder how strcat is implemented, in terms of what it
actually does with the arguments. Seems like it actually moves the pointer.
Anyone know?