diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 19:50:57 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 19:50:57 +0000 |
commit | c583f03886f262138330249cfeef94ab2dd228a8 (patch) | |
tree | 740b63a2964e01fde23d6a51418c39a790ebb8c3 /lib/libalpm/log.c | |
parent | fac045a958ab853f028a79c32353cb0c51a41d63 (diff) | |
download | pacman-c583f03886f262138330249cfeef94ab2dd228a8.tar.xz |
Added LOG_STR_LEN define to avoid hardcoded length for log strings
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r-- | lib/libalpm/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |