projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d14569
)
lineedit: \W on "/bin" should show "bin", not "/bin"
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 29 Mar 2013 12:21:53 +0000
(13:21 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 29 Mar 2013 12:21:53 +0000
(13:21 +0100)
function old new delta
parse_and_put_prompt 793 785 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index 45448dfab962d1ca48ac3295bd0ddd7f97961e41..93ab86426b399afe2e36f79e61afae0fc8581fb1 100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-1875,7
+1875,7
@@
static void parse_and_put_prompt(const char *prmt_ptr)
if (c == 'w')
break;
cp = strrchr(pbuf, '/');
- if (cp
!= NULL && cp != pbuf
)
+ if (cp)
pbuf = (char*)cp + 1;
break;
# endif