summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-08 13:16:55 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-08 13:16:55 +0200
commit670028490d511c4eceef21d706d9c11be26e0487 (patch)
tree099083b80693ba9ab298ef42b77b625a0a5981ad
parent0.0.10 (diff)
downloadircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar.gz
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar.bz2
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar.lz
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar.xz
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.tar.zst
ircxmpp-670028490d511c4eceef21d706d9c11be26e0487.zip
-rw-r--r--ircxmpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ircxmpp.c b/ircxmpp.c
index 43c9206..2afaa13 100644
--- a/ircxmpp.c
+++ b/ircxmpp.c
@@ -783,7 +783,7 @@ int main (void) {
while (1) { // note that if input config is invalid we leak memory before exiting
char b[64]; // i don't free any allocated shit and just return, probably it's ok
if (handles_length++)
- sprintf(b, "IX_JID%d", handles_length);
+ sprintf(b, "IX_JID%zu", handles_length);
else
strcpy(b, "IX_JID");
if (!getenv(b)) {
@@ -800,7 +800,7 @@ int main (void) {
if (handles_length == 1) \
sprintf(b, "IX_" config); \
else \
- sprintf(b, "IX_" config "%d", handles_length); \
+ sprintf(b, "IX_" config "%zu", handles_length); \
if (getenv(b)) \
ircxmpp_set_##value(handles[handles_length-1], function(getenv(b))); \
else if (required) \