From e4f1e18c4ecd5e19eb41eddc596b5bbed8a7dc26 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 21 Nov 2010 12:33:13 +0100 Subject: fixed entry names in the demo browser and the editor's file dialog. Closes #301 --- src/game/editor/ed_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/editor/ed_editor.cpp') diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index fc929eb5..4fa40f95 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -2138,7 +2138,7 @@ static void EditorListdirCallback(const char *pName, int IsDir, int StorageType, if(IsDir) str_format(Item.m_aName, sizeof(Item.m_aName), "%s/", pName); else - str_copy(Item.m_aName, pName, min(static_cast(sizeof(Item.m_aName)), Length+1)); + str_copy(Item.m_aName, pName, min(static_cast(sizeof(Item.m_aName)), Length-3)); Item.m_IsDir = IsDir != 0; Item.m_IsLink = false; Item.m_StorageType = StorageType; -- cgit 1.4.1