[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnokii ChangeLog common/snprintf.c
From: |
Pawel Kot |
Subject: |
gnokii ChangeLog common/snprintf.c |
Date: |
Sat, 17 Jun 2006 20:10:46 +0000 |
CVSROOT: /cvsroot/gnokii
Module name: gnokii
Changes by: Pawel Kot <pkot> 06/06/17 20:10:46
Modified files:
. : ChangeLog
common : snprintf.c
Log message:
snprintf fix: there seems to be some a nasty side effect in MSVC
vsnprintf causing a couple of ugly strings. This makes the snprintf work
similarily to unix ones (Jari Turkia)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnokii/ChangeLog?cvsroot=gnokii&r1=1.1198&r2=1.1199
http://cvs.savannah.gnu.org/viewcvs/gnokii/common/snprintf.c?cvsroot=gnokii&r1=1.6&r2=1.7
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnokii/gnokii/ChangeLog,v
retrieving revision 1.1198
retrieving revision 1.1199
diff -u -b -r1.1198 -r1.1199
--- ChangeLog 17 Jun 2006 20:06:17 -0000 1.1198
+++ ChangeLog 17 Jun 2006 20:10:46 -0000 1.1199
@@ -50,11 +50,6 @@
missed calls or dialled numbers) (Pawel Kot)
o support date fields in phonebook export and format them
sanely in raw format (Pawel Kot)
- o global gnokiirc-file is looked under %SYSTEMROOT%, looking
- from current working directory is a bad idea (Jari Turkia)
- o locale charset win32 problem: return current code page as
- codeset, also makes multibyte-functions work; there is pretty
- much nothing else that can be done to the issue (Jari Turkia)
* nk6510 driver updates
o handle calendar extended parameters writing (Pawel Kot)
o support for Symbian phones (identifier 'symbian'), generic
@@ -117,6 +112,15 @@
o add checks for -Wno-pointer-sign and -fvisibility=hidden,
add usage of __attribute__((deprecated) (Helge Deller)
o replaced usage of "API" with "GNOKII_API" (Helge Deller)
+ * compatibility updates
+ o global gnokiirc-file is looked under %SYSTEMROOT%, looking
+ from current working directory is a bad idea (Jari Turkia)
+ o locale charset win32 problem: return current code page as
+ codeset, also makes multibyte-functions work; there is pretty
+ much nothing else that can be done to the issue (Jari Turkia)
+ o snprintf fix: there seems to be some a nasty side effect in
+ MSVC vsnprintf causing a couple of ugly strings. This makes
+ the snprintf work similarily to unix ones (Jari Turkia)
0.6.12
======
Index: common/snprintf.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/snprintf.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- common/snprintf.c 16 Feb 2003 22:15:10 -0000 1.6
+++ common/snprintf.c 17 Jun 2006 20:10:46 -0000 1.7
@@ -791,6 +791,9 @@
va_start(ap, fmt);
ret = vsnprintf(str, count, fmt, ap);
va_end(ap);
+#ifdef WIN32
+ str[count-1] = 0; /* Windows vsnprintf does NOT truncate str. We
do it manually. */
+#endif
return ret;
}
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnokii ChangeLog common/snprintf.c,
Pawel Kot <=