mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-16 08:16:20 +00:00
Make null termination in hex encoding more clear
This commit is contained in:
parent
b9cc025083
commit
a87aa7230a
@ -236,7 +236,7 @@ namespace Utils {
|
|||||||
for (size_t i = 0; i < sha256_len; i++) {
|
for (size_t i = 0; i < sha256_len; i++) {
|
||||||
char buf[3];
|
char buf[3];
|
||||||
sprintf(buf, "%02x", sha256_value[i]);
|
sprintf(buf, "%02x", sha256_value[i]);
|
||||||
buf[2] = 0;
|
buf[2] = NULL;
|
||||||
result += buf;
|
result += buf;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@ -280,7 +280,7 @@ namespace Utils {
|
|||||||
for (size_t i = 0; i < sha256_len; i++) {
|
for (size_t i = 0; i < sha256_len; i++) {
|
||||||
char buf[3];
|
char buf[3];
|
||||||
sprintf(buf, "%02x", sha256_value[i]);
|
sprintf(buf, "%02x", sha256_value[i]);
|
||||||
buf[2] = 0;
|
buf[2] = NULL;
|
||||||
result += buf;
|
result += buf;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user