(setstr): Fix type error in variadic argument.

This commit is contained in:
Markus Armbruster 2006-12-31 17:21:11 +00:00
parent 4d7254498a
commit aafb4fdf8a

View file

@ -539,7 +539,7 @@ setstr(int fldno, char *str)
len = ca->ca_len; len = ca->ca_len;
if (strlen(str) > len) if (strlen(str) > len)
return gripe("Field %d takes at most %d characters", return gripe("Field %d takes at most %d characters",
fldno + 1, len); fldno + 1, (int)len);
old = memb_ptr; old = memb_ptr;
if (!must_match) if (!must_match)
strncpy(memb_ptr, str, len); strncpy(memb_ptr, str, len);