Index: uspace/lib/libc/generic/io/printf_core.c
===================================================================
--- uspace/lib/libc/generic/io/printf_core.c	(revision 216d6fc606ae06cb619154c1ca9763af0f2c1978)
+++ uspace/lib/libc/generic/io/printf_core.c	(revision 49b2dc3f313c3a625586656554c2fc5f4512df21)
@@ -95,10 +95,7 @@
 		return printf_putnchars("(NULL)", 6, ps);
 
-	for (count = 0; str[count] != 0; count++);
-
-	if (ps->write((void *) str, count, ps->data) == count)
-		return 0;
-	
-	return EOF;
+	count = strlen(str);
+
+	return ps->write((void *) str, count, ps->data);
 }
 
