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/conflict.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/conflict.c') diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 472a4f69..3755fcd7 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -350,10 +350,10 @@ static alpm_list_t *add_fileconflict(alpm_list_t *conflicts, return(conflicts); } conflict->type = type; - STRNCPY(conflict->target, name1, PKG_NAME_LEN); - STRNCPY(conflict->file, filestr, CONFLICT_FILE_LEN); + strncpy(conflict->target, name1, PKG_NAME_LEN); + strncpy(conflict->file, filestr, CONFLICT_FILE_LEN); if(name2) { - STRNCPY(conflict->ctarget, name2, PKG_NAME_LEN); + strncpy(conflict->ctarget, name2, PKG_NAME_LEN); } else { conflict->ctarget[0] = '\0'; } -- cgit v1.2.3-24-g4f1b