blob: 5b40b09274dbbac1439ee4e60207c08eefd1abab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
https://kannel.org/issues/587
--- gateway-1.5.0/gwlib/log.c.orig 2016-04-05 15:56:21.757679376 +0300
+++ gateway-1.5.0/gwlib/log.c 2016-04-05 15:59:43.253393207 +0300
@@ -431,13 +431,8 @@
int translog;
if (level >= sysloglevel && dosyslog) {
- if (args == NULL) {
- strncpy(buf, format, sizeof(buf));
- buf[sizeof(buf) - 1] = '\0';
- } else {
- vsnprintf(buf, sizeof(buf), format, args);
- /* XXX vsnprint not 100% portable */
- }
+ vsnprintf(buf, sizeof(buf), format, args);
+ /* XXX vsnprint not 100% portable */
switch(level) {
case GW_DEBUG:
|