* lib/parameter.c:
	* support/popt.c: (poptGetContext): Cleaned.

	* support/vsnprintf.c: s/strncpy/g_strlcpy
This commit is contained in:
Benoît Dejean
2004-06-06 22:10:29 +00:00
parent 54fb1482ba
commit 95d39a87c8
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2004-06-07 Benoît Dejean <tazforever@dlfp.org>
* lib/parameter.c:
* support/popt.c: (poptGetContext): Cleaned.
* support/vsnprintf.c: s/strncpy/g_strlcpy
2004-05-28 Benoît Dejean <TazForEver@free.fr>
* examples/*: Added missing #include.

View File

@@ -26,7 +26,7 @@
#define _write_data(ptr,size) \
if ((data_ptr == NULL) || (data_size < size)) return -size; \
if (ptr == NULL) { strcpy (data_ptr, ""); return 1; } \
if (ptr == NULL) { char * const p = data_ptr; *p = '\0'; return 1; } \
memcpy (data_ptr, ptr, size); \
return size;