Skip to content

Commit

Permalink
Fixed some compile warnings
Browse files Browse the repository at this point in the history
Fixes #1623
Thanks to @lelouch22
  • Loading branch information
Lemongrass3110 committed Oct 16, 2016
1 parent 48c43cf commit 57131f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/map/atcommand.c
Expand Up @@ -9577,10 +9577,10 @@ ACMD_FUNC(vip) {
ACMD_FUNC(showrate) {
nullpo_retr(-1,sd);
if (!sd->vip.disableshowrate) {
sprintf(atcmd_output,msg_txt(sd,718)); //Personal rate information is not displayed now.
safestrncpy(atcmd_output,msg_txt(sd,718),CHAT_SIZE_MAX); //Personal rate information is not displayed now.
sd->vip.disableshowrate = 1;
} else {
sprintf(atcmd_output,msg_txt(sd,719)); //Personal rate information will be shown.
safestrncpy(atcmd_output,msg_txt(sd,719),CHAT_SIZE_MAX); //Personal rate information will be shown.
sd->vip.disableshowrate = 0;
}
clif_displaymessage(fd,atcmd_output);
Expand Down
2 changes: 1 addition & 1 deletion src/map/clif.c
Expand Up @@ -15984,7 +15984,7 @@ void clif_quest_send_list(struct map_session_data *sd)
offset += 2;
WFIFOW(fd, offset) = qi->objectives[j].count;
offset += 2;
safestrncpy(WFIFOP(fd, offset), mob->jname, NAME_LENGTH);
safestrncpy((char*)WFIFOP(fd, offset), mob->jname, NAME_LENGTH);
offset += NAME_LENGTH;
}
}
Expand Down

0 comments on commit 57131f2

Please sign in to comment.