summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ChangeLog6
-rw-r--r--runtime/vsprintf.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 3eabede9..e8b9aaf2 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-30 Masami Hiramatsu <mhiramat@redhat.com>
+
+ PR 5648
+ From Shaohua Li <shaohua.li@intel.com>
+ * vsprintf.c (_stp_vsnprintf): Fix unaligned access warning on ia64.
+
2008-04-29 David Smith <dsmith@redhat.com>
* task_finder.c: Made more robust by ensuring that all utrace
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;
}