This commit is contained in:
unknown 2000-08-22 01:35:50 +03:00
parent e9a277164b
commit 4d7c91d8b2

View file

@ -2076,7 +2076,7 @@ String *Field_double::val_str(String *val_buffer,
*to++= *pos++;
#else
#ifdef HAVE_SNPRINTF
buff[to_length-1]=0; // Safety
to[to_length-1]=0; // Safety
snprintf(to,to_length-1,"%.*f",dec,nr);
#else
sprintf(to,"%.*f",dec,nr);