diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-08 13:16:55 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-08 13:16:55 +0200 |
commit | 670028490d511c4eceef21d706d9c11be26e0487 (patch) | |
tree | 099083b80693ba9ab298ef42b77b625a0a5981ad | |
parent | 0.0.10 (diff) | |
download | ircxmpp-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) \ |