correction
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 17 Feb 2019 14:38:29 +0000 (16:38 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 17 Feb 2019 14:38:29 +0000 (16:38 +0200)
src/main.c

index 2f011c9..5d9e19c 100644 (file)
@@ -103,7 +103,7 @@ int proc_image(const char *fname)
        basename = alloca(strlen(fname) + 1);
        strcpy(basename, fname);
        if((suffix = strrchr(basename, '/'))) {
-               basename = suffix;
+               basename = suffix + 1;
        }
        if((suffix = strchr(basename, '.'))) {
                *suffix = 0;