1999-02-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (create_general_properties): Use strrchr instead of rindex
Этот коммит содержится в:
родитель
e0328ad911
Коммит
eae99facd9
@ -1,3 +1,8 @@
|
||||
1999-02-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gnome-file-property-dialog.c (create_general_properties): Use
|
||||
strrchr instead of rindex
|
||||
|
||||
1999-02-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gdesktop.c: Init gicon here to avoid crashing when we have the
|
||||
|
@ -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);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user