]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Heap-allocate sessionid cvar's string to avoid stack corruption
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Jun 2020 14:49:55 +0000 (14:49 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Jun 2020 14:49:55 +0000 (14:49 +0000)
commit8bcef73b4693bfd28e2c44c4fd627cf4754c2867
treea8b677837df09787dd229a72776fdd46f5f71119
parent0fe5448cd48d31770768f209b302187dcdb1502c
Heap-allocate sessionid cvar's string to avoid stack corruption

Previously it was trying to shove the address of a local variable, which
is bad.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12633 d7cf8633-e32d-0410-b094-e92efae38249
host.c