summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 468d664..e3bea4c 100644
--- a/util.c
+++ b/util.c
@@ -77,7 +77,7 @@ char *xreadlinkat(int fd, const char *path, size_t size) {
len = readlinkat(fd, path, name, size);
if (len < 0) {
goto error;
- } else if (len >= size) {
+ } else if ((size_t)len >= size) {
size *= 2;
} else {
break;