diff options
author | jbj <devnull@localhost> | 2001-06-15 04:56:33 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-06-15 04:56:33 +0000 |
commit | f0d2abd2bcb74ab18645355ba45189abe77f38bf (patch) | |
tree | cfa580201935a10cf034c1a1655fda810205d74e /lib/header.c | |
parent | 22b9de5f331285fef6b353b9441d121dcc639ea2 (diff) | |
download | librpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.tar.gz librpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.tar.bz2 librpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.zip |
- fix: db1 end-of-file not detected in legacy compatible way.
- fix: remove (harmless) chown error message from %post.
- add --target/--host to %configure, add example cross-build/config.site
scripts to /usr/lib/rpm <arjanv@redhat.com> (#44581).
- rpmdb iterator selectors permit default/strcmp/regex/glob matching.
- rpmdb iterator selectors permit negative matches.
CVS patchset: 4861
CVS date: 2001/06/15 04:56:33
Diffstat (limited to 'lib/header.c')
-rw-r--r-- | lib/header.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/header.c b/lib/header.c index ef98e20bc..5a1c5ee95 100644 --- a/lib/header.c +++ b/lib/header.c @@ -1585,9 +1585,7 @@ static void copyData(int_32 type, /*@out@*/ void * dstPtr, const void * srcPtr, break; default: - /*@-mayaliasunique@*/ - memcpy(dstPtr, srcPtr, dataLength); - /*@=mayaliasunique@*/ + memmove(dstPtr, srcPtr, dataLength); break; } } @@ -1717,9 +1715,7 @@ int headerAddI18NString(Header h, int_32 tag, const char * string, const char * table->info.offset = 0; } else table->data = xrealloc(table->data, table->length + length); - /*@-mayaliasunique@*/ - memcpy(((char *)table->data) + table->length, lang, length); - /*@=mayaliasunique@*/ + memmove(((char *)table->data) + table->length, lang, length); table->length += length; table->info.count++; } @@ -1744,9 +1740,7 @@ 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); - /*@-mayaliasunique@*/ - strcpy(((char *)entry->data) + entry->length + ghosts, string); - /*@=mayaliasunique@*/ + memmove(((char *)entry->data) + entry->length + ghosts, string, strlen(string)); entry->length += length; entry->info.count = langNum + 1; |