diff lib/lib.c @ 311:962bbf7341f8

Tweak from Roberto Foglietta.
author Rob Landley <rob@landley.net>
date Fri, 18 Jul 2008 08:43:18 -0500
parents 8b8116214b1c
children 83c461db9df7
line wrap: on
line diff
--- a/lib/lib.c	Fri Jul 18 05:43:44 2008 -0500
+++ b/lib/lib.c	Fri Jul 18 08:43:18 2008 -0500
@@ -550,7 +550,7 @@
 	if (fd == -1) return 0;
 	len = fdlength(fd);
 	buf = xmalloc(len+1);
-	buf[xread(fd, buf, len)] = 0;
+	buf[xreadall(fd, buf, len)] = 0;
 
 	return buf;
 }