[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 742ee1a 3/6: Where strlen() semantics are wan
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 742ee1a 3/6: Where strlen() semantics are wanted, use strlen() |
Date: |
Mon, 18 Jun 2018 17:56:57 -0400 (EDT) |
branch: master
commit 742ee1a626eead0640ed4eff8ae0311874acb618
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Where strlen() semantics are wanted, use strlen()
---
authenticity_test.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/authenticity_test.cpp b/authenticity_test.cpp
index 2a4e174..fa5ae32 100644
--- a/authenticity_test.cpp
+++ b/authenticity_test.cpp
@@ -35,7 +35,7 @@
#include <boost/filesystem/path.hpp>
#include <cstdio>
-#include <cstring> // memcpy()
+#include <cstring> // memcpy(), strlen()
#include <fstream>
#include <string>
#include <vector>
@@ -163,7 +163,7 @@ void PasskeyTest::InitializeDataFile() const
os.close();
unsigned char sum[md5len];
- md5_buffer(rime, -1 + static_cast<int>(sizeof rime), sum);
+ md5_buffer(rime, std::strlen(rime), sum);
BOOST_TEST_EQUAL("bf039dbb0e8061971a2c322c8336199c", md5_str(sum));
}
- [lmi-commits] [lmi] master updated (f9f89bd -> 2918ec8), Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master b3be110 1/6: Correct a syntax error in a comment, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master c922787 2/6: Remove unnecessary parentheses, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 0490c33 4/6: Set clipboard text when pasting census out, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 2918ec8 6/6: Remove scaffolding, Greg Chicares, 2018/06/18
- [lmi-commits] [lmi] master 742ee1a 3/6: Where strlen() semantics are wanted, use strlen(),
Greg Chicares <=
- [lmi-commits] [lmi] master 274c964 5/6: Laconize, Greg Chicares, 2018/06/18