Author: jcrouse Date: 2008-04-26 01:10:23 +0200 (Sat, 26 Apr 2008) New Revision: 3271
Modified: trunk/payloads/libpayload/libc/printf.c Log: libpayload: Fix a small but aggressive bug in printf()
This was causing the returned counter value to be one more then it should be when printing a single character.
Signed-off-by: Jordan Crouse jordan.crouse@amd.com Acked-by: Ward Vandewege ward@gnu.org
Modified: trunk/payloads/libpayload/libc/printf.c =================================================================== --- trunk/payloads/libpayload/libc/printf.c 2008-04-25 23:09:39 UTC (rev 3270) +++ trunk/payloads/libpayload/libc/printf.c 2008-04-25 23:10:23 UTC (rev 3271) @@ -156,7 +156,7 @@ ++counter; }
- return ++counter; + return counter; }
/**