summaryrefslogtreecommitdiff
path: root/string/bits/string2.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/bits/string2.h')
-rw-r--r--string/bits/string2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index 51255aaf4c..8555d677ab 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -226,8 +226,9 @@ __STRING2_COPY_TYPE (8);
++__dest; \
break; \
case 3: \
- *((__uint16_t *) __dest)++ = \
+ *((__uint16_t *) __dest) = \
__STRING2_SMALL_GET16 (src, 0); \
+ __dest += sizeof (__uint16_t); \
*__dest = '\0'; \
break; \
case 4: \
@@ -236,8 +237,9 @@ __STRING2_COPY_TYPE (8);
__dest += 3; \
break; \
case 5: \
- *((__uint32_t *) __dest)++ = \
+ *((__uint32_t *) __dest) = \
__STRING2_SMALL_GET32 (src, 0); \
+ __dest += sizeof (__uint32_t); \
*__dest = '\0'; \
break; \
case 6: \