summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 4ecabac1a..15d948c59 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -262,8 +262,8 @@ int intif_regtostr(char* str, struct global_reg *reg, int qty)
int len =0, i;
for (i = 0; i < qty; i++) {
- len+= snprintf(str+len, sizeof (str+len), "%s", reg[i].str)+1; //We add 1 to consider the '\0' in place.
- len+= snprintf(str+len, sizeof (str+len), "%s", reg[i].value)+1;
+ len+= sprintf(str+len, "%s", reg[i].str)+1; //We add 1 to consider the '\0' in place.
+ len+= sprintf(str+len, "%s", reg[i].value)+1;
}
return len;
}
@@ -1471,7 +1471,7 @@ int intif_parse_Mail_inboxreceived(int fd)
else
{
char output[128];
- snprintf(output, sizeof output, msg_txt(510), sd->mail.inbox.unchecked, sd->mail.inbox.unread + sd->mail.inbox.unchecked);
+ sprintf(output, msg_txt(510), sd->mail.inbox.unchecked, sd->mail.inbox.unread + sd->mail.inbox.unchecked);
clif_disp_onlyself(sd, output, strlen(output));
}
return 0;