summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 10:54:16 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 10:54:16 +0000
commit95a05880fa4501233845f38cc5e28a78a76b3c80 (patch)
tree99b6dc872ead9e8383c8a9d12aab46d99bf4f9b5 /crawl-ref/source/libutil.cc
parent9ddee55cb06790b2d7ddf07666390614c92bc71d (diff)
downloadcrawl-ref-95a05880fa4501233845f38cc5e28a78a76b3c80.tar.gz
crawl-ref-95a05880fa4501233845f38cc5e28a78a76b3c80.zip
bug 1895003; add ';' to shell_safe
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3502 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index 9b492329cd..c5751a27eb 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -114,7 +114,7 @@ std::string apply_description(description_level_type desc,
// the shell can do damage with.
bool shell_safe(const char *file)
{
- int match = strcspn(file, "\\`$*?|><&\n!");
+ int match = strcspn(file, "\\`$*?|><&\n!;");
return !(match >= 0 && file[match]);
}