mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #1487
- #1487 `tasksh` segmentation fault (thanks to Hector Arciga).
This commit is contained in:
parent
01a78bb4b4
commit
274ec31b6b
3 changed files with 4 additions and 2 deletions
|
@ -162,7 +162,7 @@ int main (int argc, const char** argv)
|
|||
|
||||
// Escape special chars.
|
||||
size_t i = 0;
|
||||
while ((i = command.find_first_of ("$*?!|&;<>(){}~#@", i)) != std::string::npos)
|
||||
while ((i = command.find_first_of ("$*?!|&;<>(){}~#@\\", i)) != std::string::npos)
|
||||
{
|
||||
command.insert(i, 1, '\\');
|
||||
i += 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue