summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/core-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 4962112b..eefcc584 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -1522,7 +1522,7 @@ char *pa_readlink(const char *p) {
return NULL;
}
- if (n < l-1) {
+ if ((size_t) n < l-1) {
c[l-1] = 0;
return c;
}