diff options
author | jbj <devnull@localhost> | 2001-08-03 15:17:55 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-08-03 15:17:55 +0000 |
commit | dce5aa0ebd1a784ad8db04e07c7c2347e450160e (patch) | |
tree | 1f67c5a9a16a1e74c466153ce4297a27d6388690 /lib/header.c | |
parent | 46d2e8bbd870dce29f43af7c67f50c97754975bd (diff) | |
download | rpm-dce5aa0ebd1a784ad8db04e07c7c2347e450160e.tar.gz rpm-dce5aa0ebd1a784ad8db04e07c7c2347e450160e.tar.bz2 rpm-dce5aa0ebd1a784ad8db04e07c7c2347e450160e.zip |
lclint clean again.
CVS patchset: 5001
CVS date: 2001/08/03 15:17:55
Diffstat (limited to 'lib/header.c')
-rw-r--r-- | lib/header.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |