Timeline for '301 Moved Permanently' - error
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 29, 2016 at 9:51 | vote | accept | gado007 | ||
Feb 28, 2016 at 16:26 | comment | added | Peter | I used a combination of the following: strcpy, strncpy, strcmp, strncmp, strchr, and strrchr. It may not be the most elegant, but it works. Also, I used malloc to allocate memory for both abs_path and query without noticing that right before parse is called, the code already declares their size. Once I addressed that issue and added '\0' to the end of the relevant variables, parse worked. | |
Feb 28, 2016 at 16:18 | comment | added | gado007 | Peter, thx again. So what you are saying is, that although my printf() statements look ok here, there might be still the issue of not nul-terminating properly in my parse(). I guess my implementation with strtok_r() could be the source!?. What functions did you use to implement parse() ? | |
Feb 28, 2016 at 16:02 | history | answered | Peter | CC BY-SA 3.0 |