mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-06-07 08:14:48 +00:00
Merge pull request #119 from mknos/flagsstrprint
FlagsStrPrint() sanity check
This commit is contained in:
commit
3139b53e49
@ -212,7 +212,7 @@ U8 *FlagsStrPrint(U8 *dst, U8 *list, I64 flags, Bool print_all=FALSE, I64 print_
|
||||
I64 i = 0;
|
||||
|
||||
*dst = 0;
|
||||
if (!print_all_length)
|
||||
if (!print_all_length || print_all_length > 64)
|
||||
print_all_length = 64;
|
||||
while (i < print_all_length)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user