Diff between 8c0e4bd6a4385b5e4e49d41009592c06d3fe3fd3 and ed881174ca207a712a7b3cb5d1e756253bacb974
Changed Files
| File | Additions | Deletions | Status |
| src/textfile.c | +1 | -1 | modified |
Full Patch
diff --git a/src/textfile.c b/src/textfile.c
index ed6bfba..a4e54a4 100644
--- a/src/textfile.c
+++ b/src/textfile.c
@@ -101,7 +101,7 @@ static inline char *find_key(char *map, size_t size, const char *key, size_t len
while (ptrlen > len + 1) {
int cmp = (icase) ? strncasecmp(ptr, key, len) : strncmp(ptr, key, len);
if (cmp == 0) {
- if (ptr == map)
+ if (ptr == map && *(ptr + len) == ' ')
return ptr;
if ((*(ptr - 1) == '\r' || *(ptr - 1) == '\n') &&