accept longer input

master
leitner 22 years ago
parent 21df155d61
commit 2b793c7244

@ -15,10 +15,12 @@ main(int argc,char* argv[]) {
} }
if (argc<2) { if (argc<2) {
char src[1024]; char src[1024];
int len=read(0,src,sizeof(src)-1); int len;
while ((len=read(0,src,sizeof(src)-1))>0) {
if (len==-1) return(1); if (len==-1) return(1);
src[len]=0; src[len]=0;
b64encode(src); b64encode(src);
} }
}
return 0; return 0;
} }

Loading…
Cancel
Save