bug fix
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Aug 2005 20:41:27 +0000 (20:41 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Aug 2005 20:41:27 +0000 (20:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1588 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/gateway/fieldmapper-c-xml-out.pl

index eccc63a..5aa9740 100755 (executable)
@@ -112,13 +112,13 @@ void _rest_xml_output(growing_buffer* buf, object* obj, char * fm_class, int fm_
 
        } else if (obj->is_string) {
                if (obj->classname)
-                       buffer_add(buf,"%s",obj->string_data);
+                       buffer_add(buf,obj->string_data);
                else
                        buffer_fadd(buf,"<%s>%s</%s>",tag,obj->string_data,tag);
 
        } else if(obj->is_number) {
                if (obj->classname)
-                       buffer_add(buf,"%ld",obj->num_value);
+                       buffer_fadd(buf,"%ld",obj->num_value);
                else
                        buffer_fadd(buf,"<%s>%ld</%s>",tag,obj->num_value,tag);