mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-14 03:30:53 +00:00
Avoid bufover in testsuite -- sprintf() already writes terminating null byte!
This commit is contained in:
parent
870a24ced6
commit
26e452c3a3
@ -161,6 +161,5 @@ void sha1_to_str(const uint8_t * const md, char *buf) {
|
||||
for (int j=0; j<SHA_DIGEST_LENGTH; j++, i+=2) {
|
||||
sprintf(buf+i, "%02X", md[j]);
|
||||
}
|
||||
sprintf(buf+i, "%c", '\0');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user