aewl

diff util.c @ 16:359b6e563b95

several changes, new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 18:53:41 +0200
parents 00d4d52b231f
children 2e0fb4130bfb
line diff
     1.1 --- a/util.c	Tue Jul 11 18:19:01 2006 +0200
     1.2 +++ b/util.c	Tue Jul 11 18:53:41 2006 +0200
     1.3 @@ -134,7 +134,7 @@
     1.4  			n += l;
     1.5  		}
     1.6  		close(pfd[0]);
     1.7 -		buf[n - 1] = 0;
     1.8 +		buf[n < len ? n : len - 1] = 0;
     1.9  	}
    1.10  	wait(0);
    1.11  }