From: miker Date: Tue, 2 Aug 2005 20:41:27 +0000 (+0000) Subject: bug fix X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=18620deab8155cc96b1eb3feda9b04d678aaab95;p=opensrf%2Fbjwebb.git bug fix git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@450 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/gateway/fieldmapper-c-xml-out.pl b/src/gateway/fieldmapper-c-xml-out.pl index eccc63a..5aa9740 100755 --- a/src/gateway/fieldmapper-c-xml-out.pl +++ b/src/gateway/fieldmapper-c-xml-out.pl @@ -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",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",tag,obj->num_value,tag);