From 4d7c91d8b2159e9bd0fd5e7ad51675a0159ec922 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 22 Aug 2000 01:35:50 +0300 Subject: [PATCH] Fix typo --- sql/field.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/field.cc b/sql/field.cc index ba2362281ce..0ac2b0c841e 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -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);