diff options
author | brolley <brolley> | 2008-03-10 18:45:03 +0000 |
---|---|---|
committer | brolley <brolley> | 2008-03-10 18:45:03 +0000 |
commit | 1775b972583588e562c1e6f614da60806c720168 (patch) | |
tree | 68098aee5444bf221be7348094d6862905d6f97e /runtime/vsprintf.c | |
parent | 3829dbe3c614758a956d3390a83fd946a695bd38 (diff) | |
download | systemtap-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.c | 4 |
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; |