]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/ezusb.c
Use glib's g_fopen() instead of fopen().
[libsigrok.git] / hardware / common / ezusb.c
index 587abe7fffc4413199c987e4d41c98ba02d33780..e3a442611b6254dff604549d84796d875dd326bd 100644 (file)
@@ -50,7 +50,7 @@ int ezusb_install_firmware(libusb_device_handle *hdl, const char *filename)
        unsigned char buf[4096];
 
        g_message("Uploading firmware at %s", filename);
-       if ((fw = fopen(filename, "rb")) == NULL) {
+       if ((fw = g_fopen(filename, "rb")) == NULL) {
                g_warning("Unable to open firmware file %s for reading: %s",
                          filename, strerror(errno));
                return 1;