diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 1248d2b0d..77d146b5c 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,8 @@ +1999-02-02 Miguel de Icaza + + * gnome-file-property-dialog.c (create_general_properties): Use + strrchr instead of rindex + 1999-02-01 Miguel de Icaza * gdesktop.c: Init gicon here to avoid crashing when we have the diff --git a/gnome/gnome-file-property-dialog.c b/gnome/gnome-file-property-dialog.c index 952762eab..042514532 100644 --- a/gnome/gnome-file-property-dialog.c +++ b/gnome/gnome-file-property-dialog.c @@ -137,7 +137,7 @@ create_general_properties (GnomeFilePropertyDialog *fp_dlg) /* first, we set the icon */ direc = g_strdup (fp_dlg->file_name); - rindex (direc, '/')[0] = '\0'; + strrchr (direc, '/')[0] = '\0'; fe = file_entry_from_file (fp_dlg->file_name); fp_dlg->im = gicon_get_icon_for_file (direc, fe); g_free (direc);