=== modified file 'uspace/lib/c/generic/io/io.c'
--- uspace/lib/c/generic/io/io.c	2011-09-14 21:04:01 +0000
+++ uspace/lib/c/generic/io/io.c	2012-04-05 00:46:01 +0000
@@ -613,7 +613,7 @@
 
 int fgetc(FILE *stream)
 {
-	char c;
+	char c = 0;
 	
 	/* This could be made faster by only flushing when needed. */
 	if (stdout)
@@ -621,9 +621,11 @@
 	if (stderr)
 		fflush(stderr);
 	
-	if (fread(&c, sizeof(char), 1, stream) < sizeof(char))
-		return EOF;
-	
+	while(c == 0) {
+		if (fread(&c, sizeof(char), 1, stream) < sizeof(char))
+			return EOF;
+	}
+
 	return (int) c;
 }
 

