Permalink
Browse files

Fix #1137. Avoid strcasestr.

  • Loading branch information...
Andersbakken committed Jan 12, 2018
1 parent 775afa4 commit 3584c326a93a994cd329cd7d15d627d9375b678b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Source.cpp
View
@@ -279,7 +279,7 @@ static inline bool isCompiler(const Path &fullPath, const List<String> &environm
{
if (Server::instance()->options().compilerWrappers.contains(fullPath.fileName()))
return true;
if (strcasestr(fullPath.fileName(), "emacs"))
if (String(fullPath.fileName()).contains("emacs", String::CaseInsensitive))
return false;
static Hash<Path, bool> sCache;

0 comments on commit 3584c32

Please sign in to comment.