commit 093ca97df3f3352bb9637ab3112e38615b1a3003
parent be2f36f875efc1e5cde6b6bda90f5fe8e4b1c7ff
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Sun, 29 Jan 2006 00:14:01 +0200
applied different patch by Kai
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ii.c b/ii.c
@@ -463,7 +463,7 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
snprintf(nick, sizeof(nick), "%s", spw->pw_name);
- snprintf(prefix, sizeof(prefix),"%s", spw->pw_dir);
+ snprintf(prefix, sizeof(prefix),"%s/irc", spw->pw_dir);
if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'h')
usage();
@@ -480,7 +480,7 @@ int main(int argc, char *argv[])
}
}
irc = tcpopen(port);
- if(!snprintf(path, sizeof(path), "%s/irc/%s", prefix, host)) {
+ if(!snprintf(path, sizeof(path), "%s/%s", prefix, host)) {
fprintf(stderr, "%s", "ii: path to irc directory too long\n");
exit(EXIT_FAILURE);
}