Absolutely not my friend. Here is the exact line
sprintf(messg,"Can't unlink %s",sckt);
Where is the extra argument???
Printable View
sprintf(messg,"Can't unlink %s",sckt);
Careful on those, MK27. Its a mistake all of us can easily make. Remember that printf() works with the output buffer. sprint() is the one that prints to strings.
Even at that, I would recommend using snprintf(). Which helps prevent buffer overflows.
Remember, only you can prevent buffer overflows.
I bet.
Does this mean I am a prisoner of GNU forever?Code:Function: int sprintf (char *s, const char *template, ...)
This is like printf, except that the output is stored in the character array s
instead of written to a stream. A null character is written to mark the end of the string.
MK27 can you post a compilable snippet?
Of your sprintf problem.
Umm... ok...
Well, obviously there is one since you get a warning?
And btw master5001, you know there's an edit button, right? ;)
Yeah but I was hungry and ready to head home... So I figured people would overlook my spamming.
Not at all. sprintf() is a C standard function. strcasestr() on the otherhand is a GNU extention. I use it anyway... Microsoft provides a lot of functions similar to the GNU extentions that one can simply #define as the GNU names of the functions. I know that is not your issue, MK27. But there are a lot of M$ folks floating around.Quote:
Originally Posted by MK27
Can you post an example of code that gives you that error reguardless? Por favor.
[edit]Hey, are you trying to pass a socket as a string? That would issue a warning too. Though typically it would not be this specific warning.[/edit]
And how are content, fthis and found declared?