OSDN Git Service

gccの警告によりsprintfをstrcpyに変更
authorHabu <habu@users.sourceforge.jp>
Sat, 22 Jul 2017 22:06:01 +0000 (07:06 +0900)
committerHabu <habu@users.sourceforge.jp>
Sat, 22 Jul 2017 22:06:01 +0000 (07:06 +0900)
src/wizard1.c

index 511380a..e2d9510 100644 (file)
@@ -319,7 +319,7 @@ static void kind_info(char *buf, char *dam, char *wgt, char *chance, int *lev, s
        }
 
        /* Chance */
-       sprintf(chance, "");
+       strcpy(chance, "");
        for(i = 0; i < 4; i++)
        {
                char chance_aux[20] = "";