diff options
-rw-r--r-- | src/qmi-firmware-update/qfu-at-device.c | 2 | ||||
-rw-r--r-- | src/qmi-firmware-update/qfu-qdl-device.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qmi-firmware-update/qfu-at-device.c b/src/qmi-firmware-update/qfu-at-device.c index a6604a3..c6f5f41 100644 --- a/src/qmi-firmware-update/qfu-at-device.c +++ b/src/qmi-firmware-update/qfu-at-device.c @@ -113,7 +113,7 @@ send_request (QfuAtDevice *self, if (wlen != strlen (request)) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "error writing: only %" G_GSSIZE_FORMAT "/%" G_GSIZE_FORMAT " bytes written", - wlen, wlen); + wlen, strlen (request)); return FALSE; } diff --git a/src/qmi-firmware-update/qfu-qdl-device.c b/src/qmi-firmware-update/qfu-qdl-device.c index 8055433..190d526 100644 --- a/src/qmi-firmware-update/qfu-qdl-device.c +++ b/src/qmi-firmware-update/qfu-qdl-device.c @@ -269,7 +269,7 @@ send_request (QfuQdlDevice *self, if (wlen != request_size) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "error writing: only %" G_GSSIZE_FORMAT "/%" G_GSIZE_FORMAT " bytes written", - wlen, wlen); + wlen, request_size); return FALSE; } |