dstring_append_char(), rewrite

This commit is contained in:
Henrik Forstén 2013-07-18 19:28:52 +02:00 committed by rlar
parent ade2f8c2c2
commit 44ef3db000
1 changed files with 1 additions and 7 deletions

View File

@ -175,13 +175,7 @@ char *spice_dstring_append_lower(SPICE_DSTRINGPTR dsPtr,char *string,int length)
* ----------------------------------------------------------------- */
char *spice_dstring_append_char( SPICE_DSTRINGPTR dstr_p, char c)
{
char tmp_str[2] ; /* temporary string for append */
char *val_p ; /* return value */
tmp_str[0] = c ;
tmp_str[1] = '\0' ;
val_p = spice_dstring_append( dstr_p, tmp_str, -1 ) ;
return(val_p) ;
return spice_dstring_append( dstr_p, &c, 1 ) ;
} /* end spice_dstring_append_char() */
static int spice_format_length( va_list args, char *fmt )