]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - lib/c/freestanding/sprintf.cc
Fix bug in %hh handling.
[polintos/scott/priv.git] / 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':
                                        break;
                                
                                case 'h':
-                                       if (flags & long_arg)
+                                       if (flags & short_arg)
                                                flags |= short_short_arg;
                                        else
                                                flags |= short_arg;
                                                flags |= short_short_arg;
                                        else
                                                flags |= short_arg;