You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
933 B
20 lines
933 B
--- ../kona-Win.3.36-64/src/0.c 2015-07-30 11:18:02.000000000 -0400
|
|
+++ ./src/0.c 2015-12-06 03:24:04.000000000 -0500
|
|
@@ -84,7 +84,7 @@
|
|
GC; }
|
|
else if( (3==ABS(t) && (!strcmp(m,"/dev/fd/0") || !strcmp(m,"/dev/stdin"))) //read stdin
|
|
|| 4==t && (!strcmp(*kS(a),"/dev/fd/0") || !strcmp(*kS(a),"/dev/stdin")) ){
|
|
- b=getdelim_(&v,(size_t * __restrict__)&s,EOF,stdin);
|
|
+ b=new_getdelim_(&v,(size_t * __restrict__)&s,EOF,stdin);
|
|
P(freopen_stdin() == NULL, FE)
|
|
if(b==-1){z=newK(0,0); GC;} }
|
|
else { //read mapped file
|
|
@@ -868,7 +868,7 @@
|
|
FILE *f; K z,l; S s=0; I n=0;
|
|
f=popen(cmd,"r"); P(!f,_n())
|
|
z=newK(0,0); //oom
|
|
- while (getline_(&s, (size_t * __restrict__)&n, f) >= 0) {
|
|
+ while (new_getline_(&s, (size_t * __restrict__)&n, f) >= 0) {
|
|
l=newK(-3,n-1); strncpy(kC(l),s,n-1); kap(&z,&l); }
|
|
free(s); pclose(f);
|
|
R z; }
|
|
|