bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bug in snprintf()


From: Ryan Ordway
Subject: Re: possible bug in snprintf()
Date: Thu, 26 Aug 2004 09:40:55 -0700

On Wed, 2004-08-25 at 21:28, Paul Jarc wrote:
> Ryan Ordway <address@hidden> wrote:
> >    snprintf(string, sizeof(string), "Gain the 100% natural");
> 
> The third argument must be a format string, not random data.
> 
> snprintf(string, sizeof(string), "%s", "Gain the 100% natural");

        Oh geez, thanks for the cluebat. I was even using
format strings in other parts of the code. Too much time
looking at the same few lines.

-- 
HELO, my name is root... you have SIGKILLed my father... prepare to vi!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]