aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-03-29 13:21:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-03-29 13:21:53 +0100
commit8172d054db64bc80a355db111b484719930045bc (patch)
tree9bd745b27650c87747adb8d4fd226cea1d7b38ae
parent1d14569a66c741361afe0ebc6e2ef8ba9a6aeb71 (diff)
downloadbusybox-w32-8172d054db64bc80a355db111b484719930045bc.tar.gz
busybox-w32-8172d054db64bc80a355db111b484719930045bc.tar.bz2
busybox-w32-8172d054db64bc80a355db111b484719930045bc.zip
lineedit: \W on "/bin" should show "bin", not "/bin"
function old new delta parse_and_put_prompt 793 785 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 45448dfab..93ab86426 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1875,7 +1875,7 @@ static void parse_and_put_prompt(const char *prmt_ptr)
1875 if (c == 'w') 1875 if (c == 'w')
1876 break; 1876 break;
1877 cp = strrchr(pbuf, '/'); 1877 cp = strrchr(pbuf, '/');
1878 if (cp != NULL && cp != pbuf) 1878 if (cp)
1879 pbuf = (char*)cp + 1; 1879 pbuf = (char*)cp + 1;
1880 break; 1880 break;
1881# endif 1881# endif