forked from enlightenment/enlightenment
Fix an off by one error, thanks to blak.
SVN revision: 26917
This commit is contained in:
parent
c7c69b4bd3
commit
2f6c190e36
|
@ -345,7 +345,7 @@ _dialog_save_cb(void *data, void *data2)
|
||||||
{
|
{
|
||||||
tlen = 0;
|
tlen = 0;
|
||||||
for (i = 0; app->read->lines[i].line != NULL; i++)
|
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);
|
text = alloca(tlen + 1);
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue