summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-06 17:29:53 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-06 17:29:53 +0000
commit9e404a1d5018b771ff55d7e96d86be04046728dd (patch)
tree711fe40615f857e82952ffe40e900f3f6605ba20 /src/map/npc.c
parentb9d77010fc9474d3db72778508ea35f5b311be58 (diff)
downloadhercules-9e404a1d5018b771ff55d7e96d86be04046728dd.tar.gz
hercules-9e404a1d5018b771ff55d7e96d86be04046728dd.tar.bz2
hercules-9e404a1d5018b771ff55d7e96d86be04046728dd.tar.xz
hercules-9e404a1d5018b771ff55d7e96d86be04046728dd.zip
- Fixed undefined reference when compiling under Linux (patch for r15017)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15018 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 5869c6daa..7c60e462f 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1442,7 +1442,7 @@ static int npc_selllist_sub(struct map_session_data* sd, int n, unsigned short*
for( j = 0; MAX_SLOTS > j; j++ )
{// clear each of the card slot entries
- sprintf_s(card_slot, sizeof(card_slot), "@sold_card%d", j + 1);
+ snprintf(card_slot, sizeof(card_slot), "@sold_card%d", j + 1);
script_cleararray_pc(sd, card_slot, (void*)0);
}
@@ -1462,7 +1462,7 @@ static int npc_selllist_sub(struct map_session_data* sd, int n, unsigned short*
for( j = 0; MAX_SLOTS > j; j++ )
{// store each of the cards from the equipment in the array
- sprintf_s(card_slot, sizeof(card_slot), "@sold_card%d", j + 1);
+ snprintf(card_slot, sizeof(card_slot), "@sold_card%d", j + 1);
script_setarray_pc(sd, card_slot, i, (void*)(intptr_t)sd->status.inventory[idx].card[j], &key_card);
}
}