summary refs log tree commit diff stats
path: root/src/fe-gtk/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk/menu.c')
-rw-r--r--src/fe-gtk/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c
index b28b1a3c..3daf42c8 100644
--- a/src/fe-gtk/menu.c
+++ b/src/fe-gtk/menu.c
@@ -1258,7 +1258,7 @@ savebuffer_req_done (session *sess, char *file)
 	if (!file)
 		return;
 
-	fh = open (file, O_TRUNC | O_WRONLY | O_CREAT, 0600);
+	fh = g_open (file, O_TRUNC | O_WRONLY | O_CREAT, 0600);
 	if (fh != -1)
 	{
 		gtk_xtext_save (GTK_XTEXT (sess->gui->xtext), fh);