diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
commit | 7602d070dca35a848aff1d72cf0724f02df72f62 (patch) | |
tree | a2764ad033962e9e3dd2918f9b16a52c40277624 /locale/loadlocale.c | |
parent | f17f137aaf563daf1ce5532763455b09f5db9b8f (diff) | |
download | glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.gz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.xz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.zip |
Clean up locale file alignment handling.
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r-- | locale/loadlocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index de7e3d01da..45162f1364 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -148,7 +148,7 @@ _nl_intern_locale_data (int category, const void *data, size_t datasize) newdata->values[cnt].string = newdata->filedata + idx; else { - if (idx % __alignof__ (u_int32_t) != 0) + if (!LOCFILE_ALIGNED_P (idx)) goto puntdata; newdata->values[cnt].word = *((const u_int32_t *) (newdata->filedata + idx)); |