Compare commits

..

No commits in common. "59bd416dc7f5fbe135d125480b6b9ac993ead780" and "aacf2324c7ba1893fb2eccd63c16208706910994" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
CC ::= gcc
CFLAGS ::= -Og -g -Wall -Wextra -Werror
CC = gcc
CFLAGS = -Og -g -Wall -Wextra -Werror
objects ::= $(patsubst %.c, %.o, $(wildcard *.c))
objects = main.o input.o output.o encode.o
b64 : $(objects)
$(CC) -o b64 $(objects)
@ -12,4 +12,4 @@ main.o output.o : output.h
.PHONY : clean
clean :
-rm -f b64 $(objects)
rm -f b64 $(objects)

2
main.c
View file

@ -58,7 +58,7 @@ main(int argc, char *argv[])
fwrite(obuf, sizeof(*obuf), n, (out) ? out : stdout);
}
} else if (wrp) {
last = '\n';
last = 0;
while ((n = fread(obuf, sizeof(*obuf), OCTETBUF, (in) ? in : stdin))) {
n = encode(obuf, n, sbuf, url);
last = printw((out) ? out : stdout, sbuf, n);