diff --git a/coders/xpm.c b/coders/xpm.c
index 32394f1..b4fdbdc 100644
--- a/coders/xpm.c
+++ b/coders/xpm.c
@@ -632,7 +632,7 @@
if (status == MagickFalse)
return(status);
if (IsRGBColorspace(image->colorspace) == MagickFalse)
- (void) TransformImageColorspace(image,RGBColorspace,exception);
+ (void) TransformImageColorspace(image,sRGBColorspace,exception);
SetGeometry(image,&geometry);
(void) ParseMetaGeometry(PiconGeometry,&geometry.x,&geometry.y,
&geometry.width,&geometry.height);
@@ -879,7 +879,7 @@
if (status == MagickFalse)
return(status);
if (IsRGBColorspace(image->colorspace) == MagickFalse)
- (void) TransformImageColorspace(image,RGBColorspace,exception);
+ (void) TransformImageColorspace(image,sRGBColorspace,exception);
opacity=(-1);
if (image->matte == MagickFalse)
{