Skip to content

Commit

Permalink
* wrong string length was used while saving file
Browse files Browse the repository at this point in the history
  • Loading branch information
goriy committed Oct 16, 2015
1 parent 71d62cd commit 74f9110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ return;
}

p = utfstring;
for (i = 0; i < rtflen; i++) {
for (i = 0; i < utflen; i++) {
ch = *p++;
if (ch == 0x0A) {
if (crlf) fputc (0x0D, o);
Expand All @@ -118,5 +118,5 @@ return;
}
}
fclose (o);
free (rtftext);
free (utfstring);
}

0 comments on commit 74f9110

Please sign in to comment.