Commit 35afc81f authored by Hanspeter Portner's avatar Hanspeter Portner

fix trace messaging.

parent fdd8b604
Pipeline #4271599 passed with stages
in 7 minutes and 36 seconds
......@@ -343,7 +343,7 @@ _log(lua_State *L)
*end = '\0';
}
const size_t remaining = MOONY_MAX_ERROR_LEN - (end - moony->trace);
snprintf(end, MOONY_MAX_ERROR_LEN - remaining, "%s", res);
snprintf(end, remaining, "%s", res);
moony->trace_out = 1; // set flag
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment