From d19c8ed0c7527b165bd95b4231ac6e0b1fe4020d Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Thu, 1 Jul 2004 10:58:25 +0000 Subject: [PATCH] fix useless (and ugly ;-)) sizeof(char) --- src/gtk/filesel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/filesel.c b/src/gtk/filesel.c index e0c7df5cc..08d6848d3 100644 --- a/src/gtk/filesel.c +++ b/src/gtk/filesel.c @@ -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); -- 2.25.1