char* user = NULL;
sscanf(optarg, "%s", user); //optarg from getopt()
Anyone see anything wrong with those 2 lines? I'm getting a segfault I think is coming from that line. Thanks.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Threaded View
|
Click Here to Expand Forum to Full Width |