summaryrefslogtreecommitdiffstats
path: root/runtime/vsprintf.c
diff options
context:
space:
mode:
authorbrolley <brolley>2008-03-10 18:45:03 +0000
committerbrolley <brolley>2008-03-10 18:45:03 +0000
commit1775b972583588e562c1e6f614da60806c720168 (patch)
tree68098aee5444bf221be7348094d6862905d6f97e /runtime/vsprintf.c
parent3829dbe3c614758a956d3390a83fd946a695bd38 (diff)
downloadsystemtap-steved-1775b972583588e562c1e6f614da60806c720168.tar.gz
systemtap-steved-1775b972583588e562c1e6f614da60806c720168.tar.xz
systemtap-steved-1775b972583588e562c1e6f614da60806c720168.zip
2008-03-10 Dave Brolley <brolley@redhat.com>
PR5189 * vsprintf.c (_stp_vsnprintf): Arguments for dynamic width and precision are of type 'int' again. * loc2c-runtime.h (deref_string): Copy the data only if dst is not NULL. (deref_buffer): New macro.
Diffstat (limited to 'runtime/vsprintf.c')
-rw-r--r--runtime/vsprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/vsprintf.c b/runtime/vsprintf.c
index f8283e5c..0bf625a5 100644
--- a/runtime/vsprintf.c
+++ b/runtime/vsprintf.c
@@ -180,7 +180,7 @@ int _stp_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
else if (*fmt == '*') {
++fmt;
/* it's the next argument */
- field_width = va_arg(args, int64_t);
+ field_width = va_arg(args, int);
if (field_width < 0) {
field_width = -field_width;
flags |= STP_LEFT;
@@ -196,7 +196,7 @@ int _stp_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
else if (*fmt == '*') {
++fmt;
/* it's the next argument */
- precision = va_arg(args, int64_t);
+ precision = va_arg(args, int);
}
if (precision < 0)
precision = 0;