diff options
author | Timo Sirainen <cras@irssi.org> | 2001-09-11 18:20:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-09-11 18:20:10 +0000 |
commit | 5360b3eaaf8779940bf5196330de5e9b1af7ed2a (patch) | |
tree | 0893503b75383e8497e2c3449c53d92002eca120 /src | |
parent | 3432f02a05cfc369bd1f3430bcf04bc3d3ce0f6e (diff) | |
download | irssi-5360b3eaaf8779940bf5196330de5e9b1af7ed2a.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index e3c7a1f9..0de61681 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -390,8 +390,10 @@ static char *escape_target(const char *target) else { if (*target == '%') *p++ = '%'; - *p++ = *target++; + *p++ = *target; } + + target++; } *p = '\0'; |