diff --git a/src/gba/remote.cpp b/src/gba/remote.cpp index 5679ac00..ca6e3a28 100644 --- a/src/gba/remote.cpp +++ b/src/gba/remote.cpp @@ -3526,9 +3526,9 @@ void remoteInit() void remotePutPacket(const char* packet) { const char* hex = "0123456789abcdef"; - char buffer[1024]; size_t count = strlen(packet); + char buffer[count + 5]; unsigned char csum = 0;