From c7eea9b48040fad0a402c16d2a7cddaed0d4f408 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 29 Jan 2018 13:30:36 +0200 Subject: [PATCH] Marked a few more CCMDs as unsafe --- src/c_cmds.cpp | 2 +- src/g_game.cpp | 2 +- src/m_misc.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index efc11a3d2..842516ba3 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -681,7 +681,7 @@ UNSAFE_CCMD (crashout) #endif -CCMD (dir) +UNSAFE_CCMD (dir) { FString dir, path; char curdir[256]; diff --git a/src/g_game.cpp b/src/g_game.cpp index 0e44e8301..d0cf74be7 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -2599,7 +2599,7 @@ void G_DeferedPlayDemo (const char *name) gameaction = (gameaction == ga_loadgame) ? ga_loadgameplaydemo : ga_playdemo; } -CCMD (playdemo) +UNSAFE_CCMD (playdemo) { if (netgame) { diff --git a/src/m_misc.cpp b/src/m_misc.cpp index eb51ec7b9..481f956b5 100644 --- a/src/m_misc.cpp +++ b/src/m_misc.cpp @@ -673,7 +673,7 @@ void M_ScreenShot (const char *filename) } } -CCMD (screenshot) +UNSAFE_CCMD (screenshot) { if (argv.argc() == 1) G_ScreenShot (NULL);