X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fquote_fmt_parse.y;h=a28647fb5e948278eebc07d9d1a61fc0c5b84546;hp=bdbcd7aac6c80a7630b08841446bcd8e0d46887e;hb=014eb21d32a1c3271ba9cd5bce0d62a136ff6510;hpb=826b60f5e32bbcf61c56e78173a564da79c222e0 diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y index bdbcd7aac..a28647fb5 100644 --- a/src/quote_fmt_parse.y +++ b/src/quote_fmt_parse.y @@ -205,12 +205,12 @@ string: int len; strncpy($$, $1, sizeof($$)); + $$[sizeof($$) - 1] = '\0'; len = strlen($$); if (len + 1 < sizeof($$)) { $$[len + 1] = '\0'; $$[len] = $2; } - $$[sizeof($$) - 1] = '\0'; }; special: