Branch: Tag:

2004-11-06

2004-11-06 15:33:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few bugs in string_builder_vsprintf().

Rev: src/stralloc.c:1.178

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: stralloc.c,v 1.177 2004/11/06 15:28:49 grubba Exp $ + || $Id: stralloc.c,v 1.178 2004/11/06 15:33:17 grubba Exp $   */      #include "global.h"
2324:    case '%':    string_builder_putchar(s, '%');    break; +     case '+':    flags |= APPEND_POSITIVE; -  break; +  continue;    case '-':    flags |= APPEND_LEFT; -  break; +  continue;       case '0':    if (!state) {
2345:    state = STATE_MIN_WIDTH;    min_width = min_width * 10 + fmt[-1] - '0';    } -  break; +  continue;    case '.':    state = STATE_PRECISION; -  break; +  continue;       case 'O':    {