forked from github/server
CID 22560: Copy into fixed size buffer (STRING_OVERFLOW)
This commit is contained in:
parent
5d273e475e
commit
be0563c1f0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue