aboutsummaryrefslogtreecommitdiff
path: root/crypto/property/property_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/property/property_parse.c')
-rw-r--r--crypto/property/property_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/property/property_parse.c b/crypto/property/property_parse.c
index 3a67754224f0..23963c89bc46 100644
--- a/crypto/property/property_parse.c
+++ b/crypto/property/property_parse.c
@@ -641,7 +641,7 @@ static void put_str(const char *str, char **buf, size_t *remain, size_t *needed)
}
quotes = quote != '\0';
- if (*remain == 0) {
+ if (*remain <= (size_t)quotes) {
*needed += 2 * quotes;
return;
}