[coreboot] [patch 4/4] libpayload: Fix a small but aggressive bug in printf()
jordan.crouse at amd.com
jordan.crouse at amd.com
Fri Apr 25 17:52:13 CEST 2008
Here's a chunk of patches fixing various bugs in libpayload.
Content-Disposition: inline; filename=fix-evil-printf-bug.patch
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 at amd.com>
Index: libpayload/libc/printf.c
===================================================================
--- libpayload.orig/libc/printf.c 2008-04-24 11:44:17.000000000 -0600
+++ libpayload/libc/printf.c 2008-04-24 11:45:40.000000000 -0600
@@ -156,7 +156,7 @@
++counter;
}
- return ++counter;
+ return counter;
}
/**
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
More information about the coreboot
mailing list