summaryrefslogtreecommitdiffstats
path: root/ircxmpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ircxmpp.c')
-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) \