replaced (printf style) format buffer calls with non-format calls to prevent issues...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 13 Dec 2006 17:12:09 +0000 (17:12 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 13 Dec 2006 17:12:09 +0000 (17:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@806 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_json_gateway.c

index f370d0c..2979ccc 100644 (file)
@@ -154,9 +154,15 @@ static int osrf_json_gateway_method_handler (request_rec *r) {
                growing_buffer* act = buffer_init(128); 
                buffer_fadd(act, "[%s] [%s] %s %s", r->connection->remote_ip, authtoken, service, method );
                char* str; int i = 0;
-               while( (str = osrfStringArrayGetString(mparams, i++)) ) 
-                       if( i == 1 ) buffer_fadd(act, " %s", str);
-                       else buffer_fadd(act, ", %s", str);
+               while( (str = osrfStringArrayGetString(mparams, i++)) ) {
+                       if( i == 1 ) {
+            OSRF_BUFFER_ADD(act, " ");
+                               OSRF_BUFFER_ADD(act, str);
+                       } else {
+                               OSRF_BUFFER_ADD(act, ", ");
+                               OSRF_BUFFER_ADD(act, str);
+                       }
+               }
 
                osrfLogActivity( OSRF_LOG_MARK, act->buf );
                buffer_free(act);