Skip to content
Permalink
Browse files Browse the repository at this point in the history
...
  • Loading branch information
Cristy committed Mar 5, 2019
1 parent edc7d30 commit 58d9c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MagickCore/locale.c
Expand Up @@ -1521,7 +1521,7 @@ MagickExport void LocaleLower(char *string)
*/
MagickExport int LocaleLowercase(const int c)
{
if (c < 0)
if (c == EOF)
return(c);
#if defined(MAGICKCORE_LOCALE_SUPPORT)
if (c_locale != (locale_t) NULL)
Expand Down Expand Up @@ -1661,7 +1661,7 @@ MagickExport void LocaleUpper(char *string)
*/
MagickExport int LocaleUppercase(const int c)
{
if (c < 0)
if (c == EOF)
return(c);
#if defined(MAGICKCORE_LOCALE_SUPPORT)
if (c_locale != (locale_t) NULL)
Expand Down

0 comments on commit 58d9c46

Please sign in to comment.