From a58e17a1d7a9901bb32277c9aed7edded3501767 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 29 Apr 2007 12:03:09 -0400 Subject: 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 --- lib/libalpm/deps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/deps.c') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 6f075bb8..51b3207f 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -60,12 +60,12 @@ pmdepmissing_t *_alpm_depmiss_new(const char *target, pmdeptype_t type, RET_ERR(PM_ERR_MEMORY, NULL); } - STRNCPY(miss->target, target, PKG_NAME_LEN); + strncpy(miss->target, target, PKG_NAME_LEN); miss->type = type; miss->depend.mod = depmod; - STRNCPY(miss->depend.name, depname, PKG_NAME_LEN); + strncpy(miss->depend.name, depname, PKG_NAME_LEN); if(depversion) { - STRNCPY(miss->depend.version, depversion, PKG_VERSION_LEN); + strncpy(miss->depend.version, depversion, PKG_VERSION_LEN); } else { miss->depend.version[0] = 0; } -- cgit v1.2.3-24-g4f1b