]> sigrok.org Git - libsigrok.git/blobdiff - session_file.c
Use glib's g_fopen() instead of fopen().
[libsigrok.git] / session_file.c
index d6480b682e1d4ac67127cfbbd889c3aa85bcf427..fd8f9c67480423a789ea107ee8ce6694e23f30ce 100644 (file)
@@ -168,7 +168,7 @@ int session_save(char *filename)
        if ((tmpfile = g_mkstemp(metafile)) == -1)
                return SR_ERR;
        close(tmpfile);
-       meta = fopen(metafile, "wb");
+       meta = g_fopen(metafile, "wb");
        fprintf(meta, "[global]\n");
        fprintf(meta, "sigrok version = %s\n", PACKAGE_VERSION);
        /* TODO: save protocol decoders used */