Skip to content
Snippets Groups Projects
Commit 06ed0943 authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

fix format specifier for printing HBytes

Since HBytes is a length/pointer pair and not a null-terminated
string, we must pass the length as an argument to printf. The correct
format specifier for that is "%.*s" (string with "precision" = length),
not "%*s" (string with minimum field width).
parent 11e873cc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment