index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-07-05 14:16:17 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-05 21:29:02 -0500 |
commit | ae7139adcfa65991c71616e8de7910ff722d4166 (patch) | |
tree | 2126517e48edf71ae49e51fa264cc8ea4b946f81 /lib | |
parent | dfc532668d4a4182ce196a895fdd5b017b505c6f (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 2 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index ddd76a25..9bffd4fd 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -299,7 +299,7 @@ static char *canonicalize_path(const char *path) { len += 1; } CALLOC(new_path, len + 1, sizeof(char), return NULL); - strncpy(new_path, path, len); + strcpy(new_path, path); new_path[len - 1] = '/'; return new_path; } |