summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-29 18:03:09 +0200
committerDan McGee <dan@archlinux.org>2007-04-29 18:03:09 +0200
commita58e17a1d7a9901bb32277c9aed7edded3501767 (patch)
tree25209ab6fcfb551da7d55ee9a1e8e0c235511e2d /lib/libalpm/util.c
parentea327cab843397a5727a8a0dd560aab8e0975df6 (diff)
downloadpacman-a58e17a1d7a9901bb32277c9aed7edded3501767.tar.gz
pacman-a58e17a1d7a9901bb32277c9aed7edded3501767.tar.xz
Remove STRNCPY macro from libalpm
Replaced calls to the STRNCPY macro with the actual strncpy function, and pacman passes all pactests. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
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;
}