From: Scott Wood Date: Thu, 23 Aug 2007 15:07:28 +0000 (-0500) Subject: Fix bug in %hh handling. X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=257fccc857c7ee8dd304552e4e2e90336b0ef807 Fix bug in %hh handling. --- 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;