Browse Source

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

buffer as filein)
master
Felix von Leitner 20 years ago
parent
commit
7539a829f5
  1. 2
      Makefile
  2. 2
      test/uudecode.c

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))

2
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 */

Loading…
Cancel
Save