Browse Source

- Fixed warnings from r16835.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16836 54d463be-8e91-2dee-dedb-b68131a5f0ec
brianluau 12 years ago
parent
commit
cea840e1f9
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/map/chrif.c

+ 5 - 5
src/map/chrif.c

@@ -835,11 +835,11 @@ static void chrif_char_ask_name_answer(int acc, const char* player_name, uint16
 		return;
 	}
 
-        if(type>0 && type<=5)
-            sprintf(action,msg_txt(427+type)); //block|ban|unblock|unban|change the sex of
-        else
-            sprintf(action,"???");
-                
+	if(type>0 && type<=5)
+		action = msg_txt(427+type); //block|ban|unblock|unban|change the sex of
+	else
+		action = "???";
+
 	switch( answer ) {
 	case 0 : sprintf(output, msg_txt(424), action, NAME_LENGTH, player_name); break;
 	case 1 : sprintf(output, msg_txt(425), NAME_LENGTH, player_name); break;