On Thu, Mar 17, 2022 at 07:24:34PM +0100, Martin Vahlensieck wrote:
> Hi
> 
> It seems the pretty printed key is zero terminated only if the size
> of hex stays the same or increases between calls.  This diff fixes
> it, so it is always properly terminated.  While here, also drop
> *hex != '\0' from the if inside the loop, as it is checked directly
> above in the loop condition and constify the argument, as it is not
> modified.

ok tb

The ski and aki that are printed with this function are always SHA-1
digests, so they are actually NUL terminateed.

Reply via email to