C: problem with strdup against array
Does anyone see a problem with my code? attempting to do a strdup is failing with a segmentation fault within libc
plugintools.h Code:
/* Provide function for adding files to be copied/linked Code:
/* add file specification (dir, file, shell glob) |
Your glob flags GLOB_DOOFFS and GLOB_APPEND seem to be used incorrectly, DOOFFS shouldn't be used with an uninitalized glob_t since it uses the glob_t gl_offs information. GLOB_APPEND shouldn't be used in the first call to glob and since your glob_t var goes away every time you call add_copy_spec you probably shouldn't have that flag in there at all.
Either one of those used that way could make your return state undefined for your globbuf info |
All times are GMT -5. The time now is 08:14 PM. |