Ticket #10286: 0005-Fix-Incorrectly-initialize.patch

File 0005-Fix-Incorrectly-initialize.patch, 932 bytes (added by mt, 11 years ago)
  • src/system/libroot/posix/glibc/stdio-common/printf_size.c

    From a7ce2961457de6b73740a70f305e1ecbc80a6481 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 8 Dec 2013 20:06:40 +0900
    Subject: [PATCH 5/5] Fix Incorrectly initialize
    
    ---
     .../libroot/posix/glibc/stdio-common/printf_size.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/system/libroot/posix/glibc/stdio-common/printf_size.c b/src/system/libroot/posix/glibc/stdio-common/printf_size.c
    index 95b7aa3..db0f6d8 100644
    a b printf_size (FILE *fp, const struct printf_info *info, const void *const *args)  
    183183
    184184  if (special)
    185185    {
    186       int width = info->prec > width ? info->prec : width;
     186      int width = info->prec > width ? info->prec : info->width;
    187187
    188188      if (negative || info->showsign || info->space)
    189189    --width;