diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-11-07 14:01:10 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-11-07 14:01:10 +0100 |
commit | bf865c2da588591dad2c6973875024015d75fc88 (patch) | |
tree | 04bba73735eddda0c266c9893bf3d657f921e096 /lib/libalpm/package.c | |
parent | fffe7a8ef413bac8805e343d889d6dcf31763b9e (diff) | |
download | pacman-bf865c2da588591dad2c6973875024015d75fc88.tar.gz pacman-bf865c2da588591dad2c6973875024015d75fc88.tar.xz |
cleanup
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 33b9d079..f657df41 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -144,10 +144,10 @@ pmpkg_t* pkg_dummy(const char *name, const char *version) } if(name) { - STRNCPY(pkg->name, name, PKG_NAME_LEN-1); + STRNCPY(pkg->name, name, PKG_NAME_LEN); } if(version) { - STRNCPY(pkg->version, version, PKG_VERSION_LEN-1); + STRNCPY(pkg->version, version, PKG_VERSION_LEN); } return(pkg); |