--- slim-1.2.5/image.cpp.orig 2006-08-18 13:39:03.000000000 +0900 +++ slim-1.2.5/image.cpp 2006-08-18 13:39:29.000000000 +0900 @@ -391,7 +391,7 @@ void Image::Center(const int w, const int h, const char *hex) { unsigned long packed_rgb; - sscanf(hex, "%x", &packed_rgb); + sscanf(hex, "%lx", &packed_rgb); unsigned long r = packed_rgb>>16; unsigned long g = packed_rgb>>8 & 0xff; @@ -471,7 +471,7 @@ void Image::Plain(const int w, const int h, const char *hex) { unsigned long packed_rgb; - sscanf(hex, "%x", &packed_rgb); + sscanf(hex, "%lx", &packed_rgb); unsigned long r = packed_rgb>>16; unsigned long g = packed_rgb>>8 & 0xff;