ii

git clone https://orangeshoelaces.net/git/ii.git

093ca97df3f3352bb9637ab3112e38615b1a3003

Author: Anselm R. Garbe on 01/29/2006

Committer: Anselm R. Garbe on 01/29/2006

applied different patch by Kai

Stats

ii.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/ii.c b/ii.c
index 24bbd5e..5125e2d 100644
--- 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);
 	}