Add a necessary cast, because ptrdiff_t isn't necessarily the same as int.

Obtained from: OpenBSD
This commit is contained in:
Tony Finch 2003-01-17 19:10:18 +00:00
parent e948321c7a
commit 07fd5f6a98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109436

View File

@ -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],