index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/alpm.c | 2 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index b7987e9d..da879569 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -74,7 +74,7 @@ int alpm_initialize(char *root) } } - strncpy(str, (root) ? root : PM_ROOT, PATH_MAX); + STRNCPY(str, (root) ? root : PM_ROOT, PATH_MAX); /* add a trailing '/' if there isn't one */ if(str[strlen(str)-1] != '/') { strcat(str, "/"); |