From c583f03886f262138330249cfeef94ab2dd228a8 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 16 Mar 2005 19:50:57 +0000 Subject: Added LOG_STR_LEN define to avoid hardcoded length for log strings --- lib/libalpm/alpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 145996fe..9dc6556b 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -529,11 +529,11 @@ int alpm_trans_release() int alpm_logaction(char *fmt, ...) { - char str[256]; + char str[LOG_STR_LEN]; va_list args; va_start(args, fmt); - vsnprintf(str, 256, fmt, args); + vsnprintf(str, LOG_STR_LEN, fmt, args); va_end(args); return(_alpm_log_action(handle->usesyslog, handle->logfd, str)); -- cgit v1.2.3