fix cut-and-paste error in test/uudecode program (fileout used same

buffer as filein)
master
leitner 23 years ago
parent 27fe10a2c2
commit 05f4463ec3

@ -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 libc (http://www.fefe.de/dietlibc/).
DIET=diet -Os DIET=diet -Os
CC=gcc 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 #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
BYTE_OBJS=$(patsubst byte/%.c,%.o,$(wildcard byte/*.c)) 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 */ /* read uuencoded lines */
for (;;) { for (;;) {
char line[1000]; /* uuencoded lines can never be longer than 64 characters */ char line[1000]; /* uuencoded lines can never be longer than 64 characters */

Loading…
Cancel
Save