fix cut-and-paste error in test/uudecode program (fileout used same
buffer as filein)
This commit is contained in:
parent
27fe10a2c2
commit
05f4463ec3
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ VPATH=str:byte:fmt:scan:uint:open:stralloc:unix:socket:buffer:mmap:textcode
|
||||
# diet libc (http://www.fefe.de/dietlibc/).
|
||||
DIET=diet -Os
|
||||
CC=gcc
|
||||
CFLAGS=-I. -pipe -Wall -O2 -pipe -fomit-frame-pointer
|
||||
CFLAGS=-I. -pipe -Wall -O2 -fomit-frame-pointer
|
||||
#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
|
||||
|
||||
BYTE_OBJS=$(patsubst byte/%.c,%.o,$(wildcard byte/*.c))
|
||||
|
@ -50,7 +50,7 @@ int main(int argc,char* argv[]) {
|
||||
}
|
||||
}
|
||||
}
|
||||
buffer_init(&fileout,write,ofd,buf,sizeof buf);
|
||||
buffer_init(&fileout,write,ofd,obuf,sizeof obuf);
|
||||
/* read uuencoded lines */
|
||||
for (;;) {
|
||||
char line[1000]; /* uuencoded lines can never be longer than 64 characters */
|
||||
|
Loading…
x
Reference in New Issue
Block a user