summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c2
-rw-r--r--src/char/inter.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index c2490efed..a569f5ca1 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -742,7 +742,7 @@ int memitemdata_to_sql(const struct item items[], int max, int id, int tableswit
SqlStmt_BindColumn(stmt, 8+j, SQLDT_SHORT, &item.card[j], 0, NULL, NULL);
// bit array indicating which inventory items have already been matched
- flag = (bool*) aCallocA(max, sizeof(bool));
+ flag = (bool*) aCalloc(max, sizeof(bool));
while( SQL_SUCCESS == SqlStmt_NextRow(stmt) )
{
diff --git a/src/char/inter.c b/src/char/inter.c
index 2137579be..75f6533fe 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -326,7 +326,7 @@ int inter_mapif_init(int fd)
// broadcast sending
int mapif_broadcast(unsigned char *mes, int len, unsigned long fontColor, short fontType, short fontSize, short fontAlign, short fontY, int sfd)
{
- unsigned char *buf = (unsigned char*)aMallocA((len)*sizeof(unsigned char));
+ unsigned char *buf = (unsigned char*)aMalloc((len)*sizeof(unsigned char));
WBUFW(buf,0) = 0x3800;
WBUFW(buf,2) = len;