diff options
Diffstat (limited to 'apps/plugins/lib/strncpy.c')
-rw-r--r-- | apps/plugins/lib/strncpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/strncpy.c b/apps/plugins/lib/strncpy.c index 8a78b23882..1b552ee15c 100644 --- a/apps/plugins/lib/strncpy.c +++ b/apps/plugins/lib/strncpy.c | |||
@@ -46,7 +46,7 @@ QUICKREF | |||
46 | /*SUPPRESS 530*/ | 46 | /*SUPPRESS 530*/ |
47 | 47 | ||
48 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 48 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
49 | #define UNALIGNED(X, Y) \ | 49 | #define ROCKBOX_UNALIGNED(X, Y) \ |
50 | (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) | 50 | (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) |
51 | 51 | ||
52 | #if LONG_MAX == 2147483647L | 52 | #if LONG_MAX == 2147483647L |
@@ -95,7 +95,7 @@ _DEFUN (strncpy, (dst0, src0), | |||
95 | _CONST long *aligned_src; | 95 | _CONST long *aligned_src; |
96 | 96 | ||
97 | /* If SRC and DEST is aligned and count large enough, then copy words. */ | 97 | /* If SRC and DEST is aligned and count large enough, then copy words. */ |
98 | if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) | 98 | if (!ROCKBOX_UNALIGNED (src, dst) && !TOO_SMALL (count)) |
99 | { | 99 | { |
100 | aligned_dst = (long*)dst; | 100 | aligned_dst = (long*)dst; |
101 | aligned_src = (long*)src; | 101 | aligned_src = (long*)src; |