Imported from libpng-1.4.0beta6.tar
diff --git a/example.c b/example.c
index 6d4ee81..fd7096e 100644
--- a/example.c
+++ b/example.c
@@ -200,7 +200,7 @@
 
    /* Expand paletted colors into true RGB triplets */
    if (color_type == PNG_COLOR_TYPE_PALETTE)
-      png_set_palette_rgb(png_ptr);
+      png_set_palette_to_rgb(png_ptr);
 
    /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
    if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)