summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-05-02 18:21:58 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-05-02 18:21:58 +0200
commit4616ca981ed37dde25105e7ebd5d9d1b7717a022 (patch)
tree3b61407ece3c31c662268181e5e3c03db7d79f06 /src/core/wee-command.c
parent1836b40a4a7866200a98e5aa7cb18e41ed7ae0b5 (diff)
downloadweechat-4616ca981ed37dde25105e7ebd5d9d1b7717a022.zip
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 935e8ec73..84f3c5b2c 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3688,8 +3688,7 @@ command_upgrade (void *data, struct t_gui_buffer *buffer,
if (argc > 1)
{
- ptr_binary = string_replace (argv_eol[1], "~", getenv ("HOME"));
-
+ ptr_binary = string_expand_home (argv_eol[1]);
if (ptr_binary)
{
/* check if weechat binary is here and executable by user */