Author: titmuss
Date: Fri Aug  1 00:18:55 2008
New Revision: 2751

URL: http://svn.slimdevices.com?rev=2751&root=Jive&view=rev
Log:
Bug: 8876
Deescription:
Fix crashes when % is used in the logging and sent to the syslog using lsyslog.


Modified:
    7.2/trunk/squeezeplay/src/lsyslog-4/lsyslog.c

Modified: 7.2/trunk/squeezeplay/src/lsyslog-4/lsyslog.c
URL: 
http://svn.slimdevices.com/7.2/trunk/squeezeplay/src/lsyslog-4/lsyslog.c?rev=2751&root=Jive&r1=2750&r2=2751&view=diff
==============================================================================
--- 7.2/trunk/squeezeplay/src/lsyslog-4/lsyslog.c (original)
+++ 7.2/trunk/squeezeplay/src/lsyslog-4/lsyslog.c Fri Aug  1 00:18:55 2008
@@ -117,7 +117,7 @@
        const char *msg = luaL_checkstring(L, 2);       
 
 /*     printf("l_syslog(%d, %s)\n", priority, msg); */
-       syslog(priority, msg);
+       syslog(priority, "%s", msg);
        return 0;
 }
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to