Browse Source

rpn: fix crash when calling rfb.codes

mcspr-patch-1
Max Prokhorov 4 years ago
committed by GitHub
parent
commit
21e9477d96
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/rpnrules.cpp

+ 1
- 1
code/espurna/rpnrules.cpp View File

@ -430,7 +430,7 @@ void _rpnRfbSetup() {
for (auto& code : _rfb_codes) { for (auto& code : _rfb_codes) {
char buffer[128] = {0}; char buffer[128] = {0};
snprintf_P(buffer, sizeof(buffer), snprintf_P(buffer, sizeof(buffer),
PSTR("\"%s\" proto=%u count=%u last=%u"),
PSTR("proto=%u raw=\"%s\" count=%u last=%u"),
code.protocol, code.protocol,
code.raw.c_str(), code.raw.c_str(),
code.count, code.count,


Loading…
Cancel
Save