openbsd-ports/comms/hylafax/patches/patch-hfaxd_Parser_c++
todd d6ed1f2713 Security fix:
Format string bug in hfaxd. pointed out by margarida from securityfocus.
2003-11-11 22:30:34 +00:00

13 lines
438 B
Plaintext

$OpenBSD: patch-hfaxd_Parser_c++,v 1.2 2003/11/11 22:30:34 todd Exp $
--- hfaxd/Parser.c++.orig 2002-09-13 11:20:34.000000000 -0500
+++ hfaxd/Parser.c++ 2003-11-11 16:26:23.000000000 -0600
@@ -963,7 +963,7 @@ HylaFAXServer::site_cmd(Token t)
break;
case T_TRIGGER:
if (string_param(s, "trigger-spec")) {
- logcmd(t, s);
+ logcmd(t, "%s", (const char*)s);
triggerCmd("%s", (const char*) s);
return (true);
}