--- src/sgDb.c 2007-11-16 21:10:47.000000000 +0100 +++ src/sgDb.c.oden 2008-07-14 20:42:06.000000000 +0200 @@ -306,7 +306,7 @@ void startProgressBar() else { printf(" ["); - fflush(stdout); + fflush(stderr); } return; } @@ -325,7 +325,7 @@ void finishProgressBar() { printf("] 100 %% done\n"); } - fflush(stdout); + fflush(stderr); return; } @@ -340,7 +340,7 @@ void updateProgressBar(prog) { int j,k=0; k = (int)(prog * 50.0); - printf("\r");fflush(stdout); + printf("\r");fflush(stderr); printf(" ["); for(j=0; j<50; j++) { @@ -349,12 +349,12 @@ void updateProgressBar(prog) else printf(" "); } - printf("] %d %% done", (int)(prog*100.0));fflush(stdout); + printf("] %d %% done", (int)(prog*100.0));fflush(stderr); } else { if(((int)(prog*100.0) % 100) == 0) - printf(".");fflush(stdout); + printf(".");fflush(stderr); } return; --- src/sgDiv.c.in 2008-06-13 19:01:43.000000000 +0200 +++ src/sgDiv.c.in.oden 2008-07-14 20:42:39.000000000 +0200 @@ -133,7 +133,7 @@ int parseLine(line, s) { /* in case this is a '://' skip over it, but try to not read past EOS */ if(3 <= strsz-ndx) { - if(':' == p[ndx] && '/' == p[ndx+1] && '/' == p[ndx+2]) { + if(':' == p[ndx] && '/' == p[ndx+1] && '/' == p[ndx+2] && '\0' != p[ndx+3]) { ndx+=3; /* 3 == strlen("://"); */ } }