Fix an off by one error, thanks to blak.

SVN revision: 26917
This commit is contained in:
David Walter Seikel 2006-11-03 06:12:22 +00:00
parent c7c69b4bd3
commit 2f6c190e36
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ _dialog_save_cb(void *data, void *data2)
{
tlen = 0;
for (i = 0; app->read->lines[i].line != NULL; i++)
tlen += app->read->lines[i].size + 1;
tlen += app->read->lines[i].size + 2;
text = alloca(tlen + 1);
if (text)
{