diff options
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/db.c | |
parent | ea327cab843397a5727a8a0dd560aab8e0975df6 (diff) | |
download | 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/db.c')
-rw-r--r-- | lib/libalpm/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index eef27b7e..a1c1121d 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -74,7 +74,7 @@ pmdb_t *_alpm_db_new(const char *root, const char *dbpath, const char *treename) } sprintf(db->path, "%s%s%s/", root, dbpath, treename); - STRNCPY(db->treename, treename, PATH_MAX); + strncpy(db->treename, treename, PATH_MAX); return(db); } |