diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 02:55:36 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 02:55:36 -0700 |
commit | 294fbc830918f49dd13500bdf0fb4f4933338023 (patch) | |
tree | 5530504dcc0d59f9a15c651b34be37095572eb34 /builtin_complete.cpp | |
parent | 9bcc7df96f2e40e54fb1cebdb6df5de4139b0ed9 (diff) |
Replaced some calls to unescape with unescape_string
Diffstat (limited to 'builtin_complete.cpp')
-rw-r--r-- | builtin_complete.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/builtin_complete.cpp b/builtin_complete.cpp index 46c4a9d5..b08407f4 100644 --- a/builtin_complete.cpp +++ b/builtin_complete.cpp @@ -423,15 +423,13 @@ static int builtin_complete( parser_t &parser, wchar_t **argv ) case 'p': case 'c': { - wchar_t *a = unescape( woptarg, 1); - if( a ) + wcstring tmp = woptarg; + if (unescape_string(tmp, 1)) { if (opt=='p') - path.push_back(a); + path.push_back(tmp); else - cmd.push_back(a); - - free(a); + cmd.push_back(tmp); } else { |