index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-29 12:03:09 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-29 12:03:09 -0400 |
commit | a58e17a1d7a9901bb32277c9aed7edded3501767 (patch) | |
tree | 25209ab6fcfb551da7d55ee9a1e8e0c235511e2d /lib/libalpm/util.c | |
parent | ea327cab843397a5727a8a0dd560aab8e0975df6 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 2 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 715de218..1f7b7190 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -449,7 +449,7 @@ int _alpm_runscriptlet(const char *root, const char *installfn, /* chop off the root so we can find the tmpdir in the chroot */ scriptpath = scriptfn + strlen(root) - 1; } else { - STRNCPY(scriptfn, installfn, PATH_MAX); + strncpy(scriptfn, installfn, PATH_MAX); /* chop off the root so we can find the tmpdir in the chroot */ scriptpath = scriptfn + strlen(root) - 1; } |