-update to 3.0.6 - bnc#739260 - Multiple licensing problems with argus-client 3.0.0 -remove obsolete argus-clients-3.0.0-leak-fix.patch. OBS-URL: https://build.opensuse.org/request/show/115290 OBS-URL: https://build.opensuse.org/package/show/security/argus-client?expand=0&rev=16
16 lines
466 B
Diff
16 lines
466 B
Diff
Index: common/argus_util.c
|
|
===================================================================
|
|
--- common/argus_util.c.orig
|
|
+++ common/argus_util.c
|
|
@@ -20457,8 +20457,8 @@ ArgusLog (int priority, char *fmt, ...)
|
|
*tptr++ = buf[i];
|
|
}
|
|
|
|
- memset(buf, 0, MAXSTRLEN);
|
|
- strncpy(buf, tbuf, MAXSTRLEN);
|
|
+ memset(buf, 0, sizeof(buf));
|
|
+ strncpy(buf, tbuf, sizeof(buf));
|
|
}
|
|
|
|
syslog (priority, "%s", buf);
|