[gegl/soc-2012-ops] buffer: pass the third parameter to g_open



commit 4d5f56994782f5e8c27645cffd891c310a1e4bec
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Tue May 29 17:19:26 2012 +0200

    buffer: pass the third parameter to g_open
    
    On Windows g_open is a function (not a macro)
    accepting always three parameters.

 gegl/buffer/gegl-buffer-load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-load.c b/gegl/buffer/gegl-buffer-load.c
index 6d9ea30..1b6b044 100644
--- a/gegl/buffer/gegl-buffer-load.c
+++ b/gegl/buffer/gegl-buffer-load.c
@@ -258,7 +258,7 @@ gegl_buffer_load (const gchar *path)
   LoadInfo *info = g_slice_new0 (LoadInfo);
 
   info->path = g_strdup (path);
-  info->i = g_open (info->path, O_RDONLY);
+  info->i = g_open (info->path, O_RDONLY, 0770);
   GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "starting to load buffer %s", path);
   if (info->i == -1)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]