aboutsummaryrefslogtreecommitdiff
path: root/src/bi_sprintf.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/bi_sprintf.m4')
-rw-r--r--src/bi_sprintf.m46
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,5 +1,5 @@
-/* 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
@@ -376,7 +376,7 @@ MF_DEFUN_VARARGS(sprintf, STRING, STRING format)
/* 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) {

Return to:

Send suggestions and report system problems to the System administrator.