summaryrefslogtreecommitdiffstats
path: root/source/dialogs/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r--source/dialogs/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index 6976fe05..653a5726 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -108,7 +108,7 @@ static void parse_header_entry ( Mode *sw, char *line, ssize_t length )
length_key++;
}
- if ( length_key < length ) {
+ if ( (length_key+1) < length ) {
line[length_key] = '\0';
char *value = line + length_key + 1;
if ( strcasecmp ( line, "message" ) == 0 ) {