index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 17:18:59 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 17:18:59 +0000 |
commit | 6063424c82f18f3ea8bbf9a92fd30b349ec778bd (patch) | |
tree | 398d20c2637ddf5a44ddcfbeacb449c256e71c18 /lib/libalpm/add.c | |
parent | 3ac94cc71905535252db84f8a0c26a4f59d8162c (diff) |
-rw-r--r-- | lib/libalpm/add.c | 4 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index dd99313a..1651304f 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -349,7 +349,7 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) info->reason = PM_PKG_REASON_DEPEND; }*/ /* make an install date (in UTC) */ - strncpy(info->installdate, asctime(gmtime(&t)), sizeof(info->installdate)); + STRNCPY(info->installdate, asctime(gmtime(&t)), sizeof(info->installdate)); if(db_write(db, info, INFRQ_ALL)) { _alpm_log(PM_LOG_ERROR, "could not update database entry %s/%s-%s", db->treename, info->name, info->version); alpm_logaction(NULL, "error updating database for %s-%s!", info->name, info->version); @@ -415,7 +415,7 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) char pathname[PATH_MAX]; struct stat buf; - strncpy(pathname, th_get_pathname(tar), PATH_MAX); + STRNCPY(pathname, th_get_pathname(tar), PATH_MAX); if(!strcmp(pathname, ".PKGINFO") || !strcmp(pathname, ".FILELIST")) { tar_skip_regfile(tar); |