mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-13 16:16:31 +00:00
* By default, print_all_length is 64 and i counts from 0 to 63, covering all bits of flags
* Bt(&flags,64) probably doesn't make sense, so it might be safer to set a maximum cap value * I have not tested this
This commit is contained in:
parent
b32f9cea77
commit
ed0afb2bb5
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