From 05f4463ec3f0dcf2407ba1db02dff658a9ff0fe8 Mon Sep 17 00:00:00 2001 From: leitner Date: Wed, 8 May 2002 23:37:21 +0000 Subject: [PATCH] fix cut-and-paste error in test/uudecode program (fileout used same buffer as filein) --- Makefile | 2 +- test/uudecode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 14569df..4f62be5 100644 --- a/Makefile +++ b/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)) diff --git a/test/uudecode.c b/test/uudecode.c index 7f2770c..b96ca7a 100644 --- a/test/uudecode.c +++ b/test/uudecode.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 */