aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 7a9b73cd..f9e79177 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -394,7 +394,7 @@ void a_Misc_parse_content_disposition(const char *disposition, char **type, char
const char *c;
unsigned int maxlen = strlen(s);
for (c = s; !(*c == '"' && !escaped); c++) {
- if ((len = c - s) == maxlen) {
+ if ((len = c - s + 1) > maxlen) {
return;
}
escaped = *c == '\\';