*
* Version $Id$
*/
+/*
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2005-2006 Free Software Foundation Europe e.V.
+
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
+
#include "bacula.h"
int cflags;
int32_t currlen;
int base;
- int junk;
#ifdef FP_OUTPUT
LDOUBLE fvalue;
#endif
min = 10 * min + char_to_int(ch);
ch = *format++;
} else if (ch == '*') {
-#ifdef SECURITY_PROBLEM
min = va_arg(args, int);
-#else
- junk = va_arg(args, int);
-#endif
ch = *format++;
state = DP_S_DOT;
} else
max = 10 * max + char_to_int(ch);
ch = *format++;
} else if (ch == '*') {
-#ifdef SECURITY_PROBLEM
max = va_arg(args, int);
-#else
- junk = va_arg(args, int);
-#endif
ch = *format++;
state = DP_S_MOD;
} else
if (cflags == DP_C_INT16) {
value = va_arg(args, uint32_t);
} else if (cflags == DP_C_INT32) {
- value = (long)va_arg(args, uint32_t);
+ value = va_arg(args, uint32_t);
} else if (cflags == DP_C_INT64) {
- value = (int64_t) va_arg(args, uint64_t);
+ value = va_arg(args, uint64_t);
} else {
- value = (long)va_arg(args, unsigned int);
+ value = va_arg(args, unsigned int);
}
currlen = fmtint(buffer, currlen, maxlen, value, base, min, max, flags);
break;