fix useless (and ugly ;-)) sizeof(char)
authorColin Leroy <colin@colino.net>
Thu, 1 Jul 2004 10:58:25 +0000 (10:58 +0000)
committerColin Leroy <colin@colino.net>
Thu, 1 Jul 2004 10:58:25 +0000 (10:58 +0000)
src/gtk/filesel.c

index e0c7df5ccd42770cc12e3e64bf8e6a78984516d3..08d6848d361de0360158ce4a40af5173c2fe5ee8 100644 (file)
@@ -64,8 +64,8 @@ static GList *filesel_create(const gchar *title, const gchar *path, gboolean mul
                char *filename = NULL;
                char *realpath = strdup(path);
                if ((filename = strrchr(path,'/')) != NULL) {
-                       filename+=sizeof(char);
-                       *(strrchr(realpath, '/')+sizeof(char)) = '\0';
+                       filename++;
+                       *(strrchr(realpath, '/')+1) = '\0';
                } else {
                        filename = (char *) path;
                        free(realpath);