printf format fix
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 2 Jan 2007 22:00:47 +0000 (22:00 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 2 Jan 2007 22:00:47 +0000 (22:00 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@809 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/utils.c

index 56b8e4e..a226cab 100644 (file)
@@ -335,8 +335,8 @@ char* uescape( const char* string, int size, int full_escape ) {
                                                break;
 
                                        default:
-                  if( c < 32 ) buffer_fadd(buf, "\\u%0.4x", c);
-                  else OSRF_BUFFER_ADD_CHAR(buf, c);
+                                               if( c < 32 ) buffer_fadd(buf, "\\u%04x", c);
+                                               else OSRF_BUFFER_ADD_CHAR(buf, c);
                                }
 
                        } else {