summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:32:08 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:32:30 +0100
commitbbbb1adae92d53840ef28ec955a388d2d2bf7c0a (patch)
tree72adbdafd28c2741015685a65c3c2ec08a337289 /common/textfile.c
parent97b1491ba3c93fa7d44b22f72e2be1eae6c96496 (diff)
Fix signed/unsigned integer comparison for helpers
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;