forked from pool/libmaa
Matej Cepl
16accf12ff
- Upgrade to libmaa-1.4.2: * Fix build failure on SunOS-5.11 (alloca) * License has been changed from LGPL to MIT, permitted by Rik Faith, original author of this library. * Build system changed from autotools to mk-configure. * Library version/soname was bumped from 3 to 4. I cannot guarantee that mk-configure and libtool build shared library the same way. * Tests were added for stk_*, mem_* and prm_* functions. * stk_isempty function was added. * stk_* and other was reimplemented without obstack functions (glibc extension). OBS-URL: https://build.opensuse.org/request/show/668830 OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=3
25 lines
767 B
Diff
25 lines
767 B
Diff
From: Robert Luberda <robert@debian.org>
|
|
Date: Sun, 3 Jun 2018 16:28:38 +0200
|
|
Subject: Fix FTBFS with gcc-8
|
|
|
|
Increase buffer size to fix build failures like the one below:
|
|
../log.c:328:40: error: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3838 and 4093 [-Werror=format-truncation=]
|
|
snprintf (buf, sizeof (buf), "%s(%s) %s\n",
|
|
|
|
Bugs-Debian: https://bugs.debian.org/897789
|
|
---
|
|
maa/log.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/maa/log.c
|
|
+++ b/maa/log.c
|
|
@@ -297,7 +297,7 @@ static void _log_base_va(
|
|
{
|
|
va_list ap_copy;
|
|
time_t t;
|
|
- static char buf [4096] = "";
|
|
+ static char buf [8192] = "";
|
|
static char buf_main [4096] = "";
|
|
static char buf_preamble [256] = "";
|
|
|