diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-06-13 05:00:57 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-06-13 05:00:57 +0000 |
commit | cc28e7f29c421fb5eb9b6f27b7852e8df8718b2f (patch) | |
tree | 73855167aeffd4fbd285e776fefa8691f9ddf452 | |
parent | 0580db8bf96e58c76f0b743003fb707a8dc2e4de (diff) | |
download | hercules-cc28e7f29c421fb5eb9b6f27b7852e8df8718b2f.tar.gz hercules-cc28e7f29c421fb5eb9b6f27b7852e8df8718b2f.tar.bz2 hercules-cc28e7f29c421fb5eb9b6f27b7852e8df8718b2f.tar.xz hercules-cc28e7f29c421fb5eb9b6f27b7852e8df8718b2f.zip |
Changed a few sprintf's that had no format arguments to strcpy's.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13887 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/atcommand.c | 2 | ||||
-rw-r--r-- | src/map/mob.c | 6 | ||||
-rw-r--r-- | src/map/trade.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 54e826913..16fe6ee28 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2713,7 +2713,7 @@ int atcommand_produce(const int fd, struct map_session_data* sd, const char* com if ((item_data = itemdb_searchname(item_name)) == NULL && (item_data = itemdb_exists(atoi(item_name))) == NULL) { - sprintf(atcmd_output, msg_txt(170)); // The item is not equipable. + strcpy(atcmd_output, msg_txt(170)); // The item is not equipable. clif_displaymessage(fd, atcmd_output); return -1; } diff --git a/src/map/mob.c b/src/map/mob.c index 13523d94e..834d44220 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3128,9 +3128,9 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char db = mob_db_data[class_]=(struct mob_db*)aCalloc(1, sizeof(struct mob_db)); status = &db->status; - sprintf(db->sprite,sd->status.name); - sprintf(db->name,sd->status.name); - sprintf(db->jname,sd->status.name); + strcpy(db->sprite,sd->status.name); + strcpy(db->name,sd->status.name); + strcpy(db->jname,sd->status.name); db->lv=status_get_lv(&sd->bl); memcpy(status, &sd->base_status, sizeof(struct status_data)); status->rhw.atk2= status->dex + status->rhw.atk + status->rhw.atk2; //Max ATK diff --git a/src/map/trade.c b/src/map/trade.c index 7d6a4c8b2..f7f986ac7 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -203,7 +203,7 @@ int impossible_trade_check(struct map_session_data *sd) chrif_char_ask_name(-1, sd->status.name, 1, 0, 0, 0, 0, 0, 0); // type: 1 - block set_eof(sd->fd); // forced to disconnect because of the hack // message about the ban - sprintf(message_to_gm, msg_txt(540)); // This player has been definitivly blocked. + strcpy(message_to_gm, msg_txt(540)); // This player has been definitively blocked. // if we ban people } else if (battle_config.ban_hack_trade > 0) { chrif_char_ask_name(-1, sd->status.name, 2, 0, 0, 0, 0, battle_config.ban_hack_trade, 0); // type: 2 - ban (year, month, day, hour, minute, second) @@ -212,7 +212,7 @@ int impossible_trade_check(struct map_session_data *sd) sprintf(message_to_gm, msg_txt(507), battle_config.ban_hack_trade); // This player has been banned for %d minute(s). } else // message about the ban - sprintf(message_to_gm, msg_txt(508)); // This player hasn't been banned (Ban option is disabled). + strcpy(message_to_gm, msg_txt(508)); // This player hasn't been banned (Ban option is disabled). intif_wis_message_to_gm(wisp_server_name, battle_config.hack_info_GM_level, message_to_gm); return 1; |