forked from github/server
gcc still more picky than clang.
This commit is contained in:
parent
e621b97465
commit
681697fd47
1 changed files with 4 additions and 2 deletions
|
@ -604,13 +604,15 @@ static int sp_summon_familiar(castorder * co)
|
|||
else {
|
||||
bytes = strlcpy(bufp, (const char *)", ", size);
|
||||
}
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
assert(bytes <= INT_MAX);
|
||||
if (wrptr(&bufp, &size, (int)bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
}
|
||||
bytes =
|
||||
strlcpy(bufp, (const char *)skillname((skill_t)sk, mage->faction->locale),
|
||||
size);
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
assert(bytes <= INT_MAX);
|
||||
if (wrptr(&bufp, &size, (int)bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue