pass unknown string as second param to osrfLog to avoid literal % parsing in vsnprintf
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 27 Apr 2009 13:10:33 +0000 (13:10 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 27 Apr 2009 13:10:33 +0000 (13:10 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1695 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_http_translator.c

index dc41070..2b1d7bf 100644 (file)
@@ -272,7 +272,7 @@ static int osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
                     OSRF_BUFFER_ADD(act, str);
                     free(str);
                 }
-                osrfLogActivity(OSRF_LOG_MARK, act->buf);
+                osrfLogActivity(OSRF_LOG_MARK, "%s", act->buf);
                 buffer_free(act);
                 break;
             }