diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-20 23:12:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-20 23:12:55 +0100 |
| commit | 137f4b5b6ccf7545d0499f57150b005bdfdf5768 (patch) | |
| tree | 9dcea390cc4d88d40eba20b9a88763dfc099aff4 /src/lib | |
| parent | 15d7164347404249542dc5ae75cfd37011aef7c3 (diff) | |
| parent | 15235c0d2fad7e916cda5b2d6ce79c4e9a38c4f9 (diff) | |
Merge tag 'v2.16.79' into v2.17.x
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/digester.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/digester.cc b/src/lib/digester.cc index 8542c75a1..09214c3de 100644 --- a/src/lib/digester.cc +++ b/src/lib/digester.cc @@ -67,7 +67,7 @@ Digester::get () const char hex[MD5_DIGEST_SIZE * 2 + 1]; for (int i = 0; i < MD5_DIGEST_SIZE; ++i) { - sprintf(hex + i * 2, "%02x", digest[i]); + snprintf(hex + i * 2, MD5_DIGEST_SIZE * 2 + 1, "%02x", digest[i]); } _digest = hex; |
