- #1487 `tasksh` segmentation fault (thanks to Hector Arciga).
This commit is contained in:
Paul Beckingham 2014-01-20 11:11:06 -05:00
parent 01a78bb4b4
commit 274ec31b6b
3 changed files with 4 additions and 2 deletions

View file

@ -192,3 +192,4 @@ suggestions:
Michele Santullo
Scott Kroll
Kosta H
Hector Arciga

View file

@ -10,7 +10,8 @@ Features
+ Removed deprecated 'push', 'pull' and 'merge' commands.
Bugs
+ #1486 Truncated sentence in task-sync(5) manpage (thank to Jakub Wilk).
+ #1486 Truncated sentence in task-sync(5) manpage (thanks to Jakub Wilk).
+ #1487 `tasksh` segmentation fault (thanks to Hector Arciga).
+ Removed debugging code.
------ current release ---------------------------

View file

@ -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;