gnokii-users
[Top][All Lists]
Advanced

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

sprintf usage


From: Pawel Kot
Subject: sprintf usage
Date: Thu, 4 May 2006 20:22:27 +0200

Hi,

There seems to be a problem with gnokii sources and some compilers. I
got the report from FC4 and gcc version 4.0.2 20051125. The problem is
with interpretation of:
 sprintf(buffer, "%s%d", buffer, digit);
It used to work so far but under FC4 it behaves always in the was as
buffer was empty (regardles of buffer contents) and the result string
is always the digit.

Is it a bug in gcc or is it misuse of sprintf?

take care,
pkot
--
Pawel Kot
http://www.gnokii.org/




reply via email to

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