Attempt to get missing last line of quotes

This commit is contained in:
Andrew Pamment 2017-09-10 23:08:53 +10:00
parent d7324ce513
commit f7dc6a7136

View File

@ -940,7 +940,9 @@ int main(int argc, char **argv)
buffer[strlen(buffer) - 1] = '\0';
} else if (buffer[strlen(buffer) - 1] == '\n') {
buffer[strlen(buffer) - 1] = '\r';
}
} else {
buffer[strlen(buffer)+1] = '\0';
buffer[strlen(buffer)] = '\r';
if (unwrapped_quote_len == 0) {
unwrapped_quote = (char *)malloc(strlen(buffer) + 1);