From 257fccc857c7ee8dd304552e4e2e90336b0ef807 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Thu, 23 Aug 2007 10:07:28 -0500 Subject: [PATCH 1/1] Fix bug in %hh handling. --- lib/c/freestanding/sprintf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/c/freestanding/sprintf.cc b/lib/c/freestanding/sprintf.cc index acfbaff..f6ca2c1 100644 --- a/lib/c/freestanding/sprintf.cc +++ b/lib/c/freestanding/sprintf.cc @@ -242,7 +242,7 @@ extern "C" size_t vsnprintf(char *buf, size_t size, break; case 'h': - if (flags & long_arg) + if (flags & short_arg) flags |= short_short_arg; else flags |= short_arg; -- 2.39.2