CID 22560: Copy into fixed size buffer (STRING_OVERFLOW)

This commit is contained in:
Enno Rehling 2015-10-30 11:43:45 +01:00
parent 5d273e475e
commit be0563c1f0
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ static const char *sideabkz(side * s, bool truename)
#ifdef SIDE_ABKZ
abkz(f->name, sideabkz_buf, sizeof(sideabkz_buf), 3);
#else
strcpy(sideabkz_buf, itoa36(f->no));
strlcpy(sideabkz_buf, itoa36(f->no), sizeof(sideabkz_buf));
#endif
return sideabkz_buf;
}