X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fvsprintf.c;h=60874dae3ebd2a922d45a67e4ea9b8ff49dc3528;hb=0954dd61baebcd2de627803ed8e00cc70d9e8b0c;hp=82e5c13653b68d490257a244701966051d05d2fe;hpb=5a34d9bf31a021987f97f20aefa812b97b58584e;p=u-boot diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 82e5c13653..60874dae3e 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';