summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-08 02:10:56 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-08 02:10:56 +0200
commitdaab1adc5e6f546ad9298e52c213a367d1174982 (patch)
tree91ef6cf315566e27a553012d6309d89d616b2e51
parent0.0.8 (diff)
downloadircxmpp-0.0.9.tar
ircxmpp-0.0.9.tar.gz
ircxmpp-0.0.9.tar.bz2
ircxmpp-0.0.9.tar.lz
ircxmpp-0.0.9.tar.xz
ircxmpp-0.0.9.tar.zst
ircxmpp-0.0.9.zip
-rw-r--r--debian/changelog17
-rw-r--r--ircxmpp.c10
2 files changed, 18 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index 36d3ff4..f21b1f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,17 @@
-ircxmpp (0.0.8-1) stable; urgendcy=low
+ircxmpp (0.0.9-1) stable; urgency=low
+
+ * how did this slip my extensive testing?
+ * do not use 0.0.8
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sun, 8 May 2022 02:00:00 +0200
+
+ircxmpp (0.0.8-1) stable; urgency=low
* it might be beneficiary to test if the program works before releasing
- - tested compilers: tcc, gcc, clang
- - scanned with scan-build and -fanalyzer
- - ran with valgrind
- - do not use 0.0.7
+ * tested compilers: tcc, gcc, clang
+ * scanned with scan-build and -fanalyzer
+ * ran with valgrind
+ * do not use 0.0.7
-- Anton Luka Šijanec <anton@sijanec.eu> Fri, 6 May 2022 23:00:00 +0200
diff --git a/ircxmpp.c b/ircxmpp.c
index aa23b8d..73ebc81 100644
--- a/ircxmpp.c
+++ b/ircxmpp.c
@@ -482,10 +482,12 @@ static int irc_run_once_control (struct ircxmpp * ircxmpp) { /* returns nonzero
LOG(ircxmpp, IRCXMPP_INFO, "CONNECTING control %s!ircxmpp@host", b);
free(ircxmpp->ircnick);
ircxmpp->ircnick = strdup(b);
- char domain[512+strlen(ircxmpp->domain)];
- strcpy(domain, "čžš .. invalid domain so that we get our IP address as irchost ..");
- strcat(domain, ircxmpp->domain);
- ircxmpp->domain_setter(ircxmpp->domain_setter_userdata, domain);
+ if (ircxmpp->domain) {
+ char domain[512+strlen(ircxmpp->domain)];
+ strcpy(domain, "čžš .. invalid domain so that we get our IP address as irchost ..");
+ strcat(domain, ircxmpp->domain);
+ ircxmpp->domain_setter(ircxmpp->domain_setter_userdata, domain);
+ }
if (irc_connect(ircxmpp->irc, ircxmpp->hostname, ircxmpp->port,
NULL, b, "ircxmpp", "http git.sijanec.eu/sijanec/ircxmpp")) {
LOG(ircxmpp, IRCXMPP_ERROR, "control could not connect: %s",