| 1 | --- ../kona-Win.3.36-64/src/0.c 2015-07-30 11:18:02.000000000 -0400 |
| 2 | +++ ./src/0.c 2015-12-06 03:24:04.000000000 -0500 |
| 3 | @@ -84,7 +84,7 @@ |
| 4 | GC; } |
| 5 | else if( (3==ABS(t) && (!strcmp(m,"/dev/fd/0") || !strcmp(m,"/dev/stdin"))) //read stdin |
| 6 | || 4==t && (!strcmp(*kS(a),"/dev/fd/0") || !strcmp(*kS(a),"/dev/stdin")) ){ |
| 7 | - b=getdelim_(&v,(size_t * __restrict__)&s,EOF,stdin); |
| 8 | + b=new_getdelim_(&v,(size_t * __restrict__)&s,EOF,stdin); |
| 9 | P(freopen_stdin() == NULL, FE) |
| 10 | if(b==-1){z=newK(0,0); GC;} } |
| 11 | else { //read mapped file |
| 12 | @@ -868,7 +868,7 @@ |
| 13 | FILE *f; K z,l; S s=0; I n=0; |
| 14 | f=popen(cmd,"r"); P(!f,_n()) |
| 15 | z=newK(0,0); //oom |
| 16 | - while (getline_(&s, (size_t * __restrict__)&n, f) >= 0) { |
| 17 | + while (new_getline_(&s, (size_t * __restrict__)&n, f) >= 0) { |
| 18 | l=newK(-3,n-1); strncpy(kC(l),s,n-1); kap(&z,&l); } |
| 19 | free(s); pclose(f); |
| 20 | R z; } |