mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
Merge pull request #119 from mknos/flagsstrprint
FlagsStrPrint() sanity check
This commit is contained in:
commit
3139b53e49
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ U8 *FlagsStrPrint(U8 *dst, U8 *list, I64 flags, Bool print_all=FALSE, I64 print_
|
||||||
I64 i = 0;
|
I64 i = 0;
|
||||||
|
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
if (!print_all_length)
|
if (!print_all_length || print_all_length > 64)
|
||||||
print_all_length = 64;
|
print_all_length = 64;
|
||||||
while (i < print_all_length)
|
while (i < print_all_length)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue