]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
Fix bug in %hh handling.
authorScott Wood <scott@thor.buserror.net>
Thu, 23 Aug 2007 15:07:28 +0000 (10:07 -0500)
committerScott Wood <scott@thor.buserror.net>
Thu, 23 Aug 2007 15:07:28 +0000 (10:07 -0500)
lib/c/freestanding/sprintf.cc

index acfbaff17caa17c097dbba61635844351148e9e9..f6ca2c119166a40b081622cd9119c2f5116dd070 100644 (file)
@@ -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;