index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/log.c | 4 |
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c index dd4d34a0..cf5a9b48 100644 --- a/lib/libalpm/log.c +++ b/lib/libalpm/log.c @@ -33,7 +33,7 @@ unsigned char __pm_logmask = 0; void _alpm_log(unsigned char flag, char *fmt, ...) { - char str[256]; + char str[LOG_STR_LEN]; va_list args; if(__pm_logcb == NULL) { @@ -42,7 +42,7 @@ void _alpm_log(unsigned char flag, char *fmt, ...) if(flag & __pm_logmask) { va_start(args, fmt); - vsnprintf(str, 256, fmt, args); + vsnprintf(str, LOG_STR_LEN, fmt, args); va_end(args); __pm_logcb(flag, str); |