sissybimbo / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

GTK-version of Gargoyle crashes when choosing files from non-directory locations #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The GTK file-chooser dialog has a number of non-directory locations like 
"Recently Used" and "Search" which do not correspond to any physical directory. 
 Saving or loading a file through one of these locations, or even just 
selecting such a location and then cancelling the dialog, will crash the 
application (which is especially painful when saving, of course!)

The underlying cause is that gtk_file_chooser_get_current_folder() returns NULL 
for such locations, which garglk then tries to strcpy().  I've attached a 
simple patch to resolve the issue.

Original issue reported on code.google.com by znxfire...@gmail.com on 24 Jan 2013 at 2:41

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r611.

Original comment by cspiegel@gmail.com on 27 Mar 2013 at 6:35