(setstr): Fix type error in variadic argument.
This commit is contained in:
parent
4d7254498a
commit
aafb4fdf8a
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ setstr(int fldno, char *str)
|
|||
len = ca->ca_len;
|
||||
if (strlen(str) > len)
|
||||
return gripe("Field %d takes at most %d characters",
|
||||
fldno + 1, len);
|
||||
fldno + 1, (int)len);
|
||||
old = memb_ptr;
|
||||
if (!must_match)
|
||||
strncpy(memb_ptr, str, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue