index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/package.c | 4 |
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); |