summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index f87e1f791..73271b197 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -958,7 +958,7 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus *p, int online){
for(i=0;i<20;i++) {
p->friend_id[i] = 0;
- sprintf(p->friend_name[i], "");
+ p->friend_name[i][0] = '\0';
}
tmp_p += sprintf(tmp_p, "SELECT `id`, `account_id`");