X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fvsprintf.c;h=60874dae3ebd2a922d45a67e4ea9b8ff49dc3528;hb=c0cae2e24552d57f3e2f841ec235453413cd7389;hp=82e5c13653b68d490257a244701966051d05d2fe;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=platform%2Fkernel%2Fu-boot.git diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 82e5c13..60874da 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -750,6 +750,7 @@ repeat: ADDCH(str, '\0'); if (str > end) end[-1] = '\0'; + --str; } #else *str = '\0';