libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
|
12-24-2013, 03:48 PM
(This post was last modified: 12-24-2013 03:58 PM by debrouxl.)
Post: #36
|
|||
|
|||
RE: libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
Thanks
An access fault in strrchr means that its argument points to nowhere sane... which, in turn, means that basename returned something unexpected to me, possibly NULL. Under Linux, `man basename` shows no relevant way for dirname() and basename() to return NULL, so I didn't bother adding a check. What does `man basename` say on MacOS X ? Also, for testing purposes, try replacing Code: char * file = basename(filepath); Code: char * duplicated = strdup(filepath); |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)