diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-05-07 13:10:32 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-07 13:10:32 -0400 |
commit | 9204dcfbe16061f799068eeacff5dc68ad33e523 (patch) | |
tree | d0b0d6b9a850527b6ddf756de8846023933a4f18 /runtime/vsprintf.c | |
parent | 49628242c239feb617b838bb5d90488386645bd6 (diff) | |
parent | 12603f28dc1abdfdff43c53b939ebb528382512e (diff) | |
download | systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.tar.gz systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.tar.xz systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.zip |
Merge branch 'master' into pr6429-comp-unwindsyms
* master:
PR444886: add .../build/... to default debuginfo search path
More signal cleanup.
Fix problem handling SIG_CHLD
Cleanup signal handling for staprun.
PR6481: timer reset needs irqs reenabled
Made runtime/task_finder.c improvements.
PR6474: use position-independent-executable security c/ld-flags for stap* binaries
2008-05-01 William Cohen <wcohen@redhat.com>
add git commit summary guidelines
PR5648: Fix unaligned access warning on ia64.
PR6008: Increase the limitation of the buffer size to 4095MB.
PR5645: Fix sub-buffer size calculation and debug messages.
Diffstat (limited to 'runtime/vsprintf.c')
-rw-r--r-- | runtime/vsprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/vsprintf.c b/runtime/vsprintf.c index 0bf625a5..dcaa1bc3 100644 --- a/runtime/vsprintf.c +++ b/runtime/vsprintf.c @@ -256,18 +256,18 @@ int _stp_vsnprintf(char *buf, size_t size, const char *fmt, va_list args) break; case 2: if((str + 1) <= end) - *(int16_t *)str = (int16_t)num; + memcpy(str, &num, 2); str+=2; break; case 4: if((str + 3) <= end) - *(int32_t *)str = num; + memcpy(str, &num, 4); str+=4; break; default: // "%.8b" by default case 8: if((str + 7) <= end) - *(int64_t *)str = num; + memcpy(str, &num, 8); str+=8; break; } |