From dce5aa0ebd1a784ad8db04e07c7c2347e450160e Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 3 Aug 2001 15:17:55 +0000 Subject: lclint clean again. CVS patchset: 5001 CVS date: 2001/08/03 15:17:55 --- lib/header.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/header.c') diff --git a/lib/header.c b/lib/header.c index aa5bba485..6d3a2f6e1 100644 --- a/lib/header.c +++ b/lib/header.c @@ -1590,7 +1590,11 @@ int headerAddI18NString(Header h, int_32 tag, const char * string, const char * entry->data = xrealloc(entry->data, entry->length + length); memset(((char *)entry->data) + entry->length, '\0', ghosts); +#if 0 strcpy(((char *)entry->data) + entry->length + ghosts, string); +#else + memmove(((char *)entry->data) + entry->length + ghosts, string, strlen(string)+1); +#endif entry->length += length; entry->info.count = langNum + 1; -- cgit v1.2.3