Commit dcd08687 authored by Marek Vasut's avatar Marek Vasut
Browse files

rcar_gen3: plat: Zero-terminate the string in unsigned_num_print()



Make sure the string generated in unsigned_num_print() is zero-terminated.
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: Ic0ac1ebca255002522159a9152ab41991f043d05
parent 455a6f3b
...@@ -134,6 +134,7 @@ static void unsigned_num_print(unsigned long long int unum, unsigned int radix, ...@@ -134,6 +134,7 @@ static void unsigned_num_print(unsigned long long int unum, unsigned int radix,
while (--i >= 0) while (--i >= 0)
*string++ = num_buf[i]; *string++ = num_buf[i];
*string = 0;
} }
#if (RCAR_LOSSY_ENABLE == 1) #if (RCAR_LOSSY_ENABLE == 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment