bug fix
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 2 Aug 2005 20:41:27 +0000 (20:41 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 2 Aug 2005 20:41:27 +0000 (20:41 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@450 9efc2488-bf62-4759-914b-345cdb29e865

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);