diff options
Diffstat (limited to 'src/bi_sprintf.m4')
-rw-r--r-- | src/bi_sprintf.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bi_sprintf.m4 b/src/bi_sprintf.m4 index 3f3f434d..afd63d32 100644 --- a/src/bi_sprintf.m4 +++ b/src/bi_sprintf.m4 @@ -1,8 +1,8 @@ -/* This file is part of mailfromd. -*- c -*- - Copyright (C) 2007 Sergey Poznyakoff +/* This file is part of Mailfromd. -*- c -*- + Copyright (C) 2007, 2008 Sergey Poznyakoff This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. @@ -373,13 +373,13 @@ MF_DEFUN_VARARGS(sprintf, STRING, STRING format) /* If a precision is given with a numeric conversion, the 0 flag is ignored. */ /* A - overrides a 0 if both are given.*/ if (prec || (flags & FMT_ADJUST_LEFT)) flags &= ~FMT_PADZERO; - snprintf(buf+1, sizeof(buf)-1, "%o", num); + snprintf(buf+1, sizeof(buf)-1, "%lo", num); str = buf + 2; n = strlen(str); if (prec && prec > n) { memmove(str + prec - n, str, n + 1); memset(str, '0', prec - n); } |