commit | 1004a5339a78fa77face21cf23ab551bf866ffce | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon May 15 07:17:23 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon May 15 07:17:23 2006 +0000 |
tree | 85f2d04eadab46008f24374ef96a65a0761b6b4a | |
parent | 373f0a718c359bc9e554ec323a9d71844ee76dfc [diff] [blame] |
Patch #1488312, Fix memory alignment problem on SPARC in unicode. Will backport
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 292d02b..a3af7f6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -2313,7 +2313,7 @@ end = s + size; while (s < end) { - *p = *(Py_UNICODE *)s; + memcpy(p, s, sizeof(Py_UNICODE)); /* We have to sanity check the raw data, otherwise doom looms for some malformed UCS-4 data. */ if (