X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=prvm_exec.c;h=55a91d92d9438d148fe6312b951aa5181bfd7a86;hb=34e18371c4b0593a50e787ee21a96d1594a733f8;hp=ae340eece405769163407311c0ece5420106518f;hpb=42b9e4880db4bb17fd60d5c0a55698eb2613e129;p=xonotic%2Fdarkplaces.git diff --git a/prvm_exec.c b/prvm_exec.c index ae340eec..55a91d92 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -276,7 +276,7 @@ void PRVM_ShortStackTrace(char *buf, size_t bufsize) } else { - strlcpy(buf, "", sizeof(buf)); + strlcpy(buf, "", bufsize); return; } @@ -443,6 +443,10 @@ void PRVM_CrashAll() void PRVM_PrintState(void) { int i; + if(prog->statestring) + { + Con_Printf("Caller-provided information: %s\n", prog->statestring); + } if (prog->xfunction) { for (i = -7; i <= 0;i++)