Skip to content

Commit 46f2a35

Browse files
committed
Fix: array initialization compatibility with MSVC
1 parent 23f201d commit 46f2a35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libirecovery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3269,7 +3269,7 @@ static irecv_error_t irecv_send_command_raw(irecv_client_t client, const char* c
32693269
if ((error = irecv_usb_interrupt_transfer(client, 0x83, &buf[0], sizeof(buf), &bytes, USB_TIMEOUT))) return error;
32703270
if (bytes != sizeof(legacyCMD)) return IRECV_E_UNKNOWN_ERROR;
32713271
#endif
3272-
char cmdstr[0x100] = {};
3272+
char cmdstr[0x100] = {0};
32733273
if (length & 0xf) {
32743274
length &= ~0xf;
32753275
length += 0x10;
@@ -3730,7 +3730,7 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un
37303730

37313731
if (legacy_recovery_mode) {
37323732
irecv_reconnect(client, 0);
3733-
char cmdstr[0x100] = {};
3733+
char cmdstr[0x100] = {0};
37343734
snprintf(cmdstr, sizeof(cmdstr), "setenv filesize %d", (int)length);
37353735
irecv_send_command(client, cmdstr);
37363736
}

0 commit comments

Comments
 (0)