Add a necessary cast, because ptrdiff_t isn't necessarily the same as int.
Obtained from: OpenBSD
This commit is contained in:
parent
e948321c7a
commit
07fd5f6a98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109436
@ -791,7 +791,7 @@ findsym(const char *str)
|
||||
if (cp == str)
|
||||
return -1;
|
||||
if (symlist)
|
||||
printf("%.*s\n", cp-str, str);
|
||||
printf("%.*s\n", (int)(cp-str), str);
|
||||
for (symind = 0; symind < nsyms; ++symind) {
|
||||
if (strlcmp(symname[symind], str, cp-str) == 0) {
|
||||
debug("findsym %s %s", symname[symind],
|
||||
|
Loading…
Reference in New Issue
Block a user