ERR: Fixed compiler warning for gcc 3.0.

This commit is contained in:
Brad King 2001-11-14 09:55:24 -05:00
parent e7ac38077a
commit 17591cd515
1 changed files with 2 additions and 1 deletions

View File

@ -3809,7 +3809,8 @@ int set_field_buffer(FIELD * field, int buffer, const char * value)
p[s-value] = *s; p[s-value] = *s;
if (s < (value+len)) if (s < (value+len))
{ {
p[s-value] = *s++; int off = s-value;
p[off] = *s++;
s = p + (s-value); s = p + (s-value);
} }
else else