mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
32aa72aab8
gif_image.C:61:7: error: assigning to 'char *' from incompatible type 'const char *' name = strrchr(filename,'/'); ^ ~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
14 lines
391 B
C
14 lines
391 B
C
--- gif_image.C.orig 1996-07-04 21:43:12 UTC
|
|
+++ gif_image.C
|
|
@@ -58,8 +58,8 @@ GifImage::GifImage(const char *filename,
|
|
: lockcount(0) {
|
|
first=0;
|
|
LoadGIF( filename );
|
|
- name = strrchr(filename,'/');
|
|
- if (name) name=strdup(name+1);
|
|
+ const char *pos = strrchr(filename,'/');
|
|
+ if (pos) name=strdup(pos+1);
|
|
else name=strdup(filename);
|
|
|
|
if (autocrop&&!fastinfo_flag) CropImage();
|