summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/textfile.c')
-rw-r--r--common/textfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/textfile.c b/common/textfile.c
index d1df7ef1..eaf77568 100644
--- a/common/textfile.c
+++ b/common/textfile.c
@@ -213,7 +213,7 @@ static int write_key(const char *pathname, const char *key, const char *value, i
goto unmap;
}
- if (value && (strlen(value) == end - off - len - 1) &&
+ if (value && ((ssize_t) strlen(value) == end - off - len - 1) &&
!strncmp(off + len + 1, value, end - off - len - 1))
goto unmap;