1
0
mirror of https://github.com/deadw00d/AROS.git synced 2026-01-12 08:35:21 +00:00

Fixed a bug.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@7279 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
bergers
2000-02-17 20:04:23 +00:00
parent 10d6fe0137
commit 70b079b4a4

View File

@ -258,20 +258,25 @@ LONG dumpfile(struct file *in, struct file *out, BOOL showline)
for(;;)
{
c=getc(in);
if(c<0)
{
if (lastc!='\n')
putc(out, '\n');
put(out);
return 0;
}
if (lastc=='\n' && showline)
if (lastc==0x0a && showline)
putlinenumber(out, ++line);
if(putc(out,c)||(c=='\n'&&put(out)))
if(putc(out,c)||(c=='\n' && put(out)))
{
if (c!='\n')
putc(out, '\n');
put(out);
return 1;
}