Simplify D1X SPREADFIRE truncation

This commit is contained in:
Kp 2013-09-02 23:58:38 +00:00
parent 4e177dd3fa
commit 243f8cdd36

View file

@ -316,8 +316,7 @@ void load_text()
case 116:
if (!d_stricmp(Text_string[i], "SPREADFIRE")) // This string is too long to fit in the cockpit-box
{
memset(Text_string[i], '\0', sizeof(char)*(strlen(Text_string[i])+1));
strncpy(Text_string[i], "SPREAD", sizeof(char)*6);
Text_string[i][6] = 0;
}
break;
#endif