Skip to content
Snippets Groups Projects
Commit 688b566b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix logged garbage observed in release rPi3 builds

The "insert key into keybuf" log line could contain garbage. Apparently
in a release build, the nested scope stack variable is actually invalid
after the end of the scope. Weird.
parent 989db9c6
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -475,13 +475,14 @@ void sbbs_t::pause()
/****************************************************************************/
void sbbs_t::ungetkey(char ch, bool insert)
{
char dbg[2] = {};
#if 0 /* this way breaks ansi_getxy() */
RingBufWrite(&inbuf,(uchar*)&ch,sizeof(uchar));
#else
if(keybuf_space()) {
char* p = c_escape_char(ch);
if(p == NULL) {
char dbg[2] = { ch, 0 };
dbg[0] = ch;
p = dbg;
}
lprintf(LOG_DEBUG, "%s key into keybuf: %02X (%s)", insert ? "insert" : "append", ch, p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment