aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-15 17:52:03 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 22:45:06 +0800
commit86002436837003a0b3655d5c41e51ca12b746bc1 (patch)
tree332abe4bf079b2f8c3185ecbf0405d48cf66be05 /expand.cpp
parentc6e59874800f698d2b27f495028bf3ae851b4ff1 (diff)
Fix two clang warnings
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/expand.cpp b/expand.cpp
index 860c6dec..c2095f37 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -753,14 +753,14 @@ static int expand_pid(const wcstring &instr_with_sep,
if (wcsncmp(in+1, SELF_STR, wcslen(in+1))==0)
{
append_completion(out,
- SELF_STR+wcslen(in+1),
+ &SELF_STR[wcslen(in+1)],
COMPLETE_SELF_DESC,
0);
}
else if (wcsncmp(in+1, LAST_STR, wcslen(in+1))==0)
{
append_completion(out,
- LAST_STR+wcslen(in+1),
+ &LAST_STR[wcslen(in+1)],
COMPLETE_LAST_DESC,
0);
}