Skip to content

Commit a5bca1b

Browse files
committed
Quiet a -Wconversion warning.
1 parent a27b989 commit a5bca1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/ttyname_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ sudo_ttyname_dev_v1(dev_t rdev, char *buf, size_t buflen)
272272
continue;
273273

274274
fdpath[sizeof("/proc/self/fd/N") - 2] = '0' + fd;
275-
len = readlink(fdpath, buf, buflen);
275+
len = (size_t)readlink(fdpath, buf, buflen);
276276
if (len != (size_t)-1) {
277277
if (len == buflen) {
278278
errno = ERANGE; /* buf too small */

0 commit comments

Comments
 (0)