1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

escape_target() didn't escape / chars properly, it just crashed irssi..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1793 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-09-11 18:20:10 +00:00 committed by cras
parent 3432f02a05
commit 5360b3eaaf

View File

@ -390,8 +390,10 @@ static char *escape_target(const char *target)
else { else {
if (*target == '%') if (*target == '%')
*p++ = '%'; *p++ = '%';
*p++ = *target++; *p++ = *target;
} }
target++;
} }
*p = '\0'; *p = '\0';