X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FDevtools%2FConsoleCmds.cpp;fp=Source%2FDevtools%2FConsoleCmds.cpp;h=b9aabcc4dd812757d221d5272bf7deed4c9259d4;hb=baf6f2aaa0271b401b47fe2fdb6eee50e6784bcf;hp=f69984b79890c5e2d8de038ba5d32e0c8009abdb;hpb=03fbcc5b5e18dbf62c48849fc8d02cd250aa744e;p=lugaru.git diff --git a/Source/Devtools/ConsoleCmds.cpp b/Source/Devtools/ConsoleCmds.cpp index f69984b..b9aabcc 100644 --- a/Source/Devtools/ConsoleCmds.cpp +++ b/Source/Devtools/ConsoleCmds.cpp @@ -142,7 +142,7 @@ static void set_clothes(int pnum, const char *args) snprintf(buf, 63, "Textures/%s.png", args); int id = Person::players[pnum]->numclothes; - strcpy(Person::players[pnum]->clothes[id], buf); + strncpy(Person::players[pnum]->clothes[id], buf, 64); Person::players[pnum]->clothestintr[id] = tintr; Person::players[pnum]->clothestintg[id] = tintg; Person::players[pnum]->clothestintb[id] = tintb;