aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-01 11:06:22 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-01 11:06:22 -0700
commitfd7583acc0adcce2fa63d21755091ddb3077aa14 (patch)
treed2c7b019c4ff994b9347141a54a83cc8bffee667 /src/tests
parenta655bb28194bcea9efc2550d9c41c422c05ce762 (diff)
downloadlibbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.gz
libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.bz2
libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.tar.xz
libbu++-fd7583acc0adcce2fa63d21755091ddb3077aa14.zip
Fixed potential memory corruption/race condition.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/utf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/utf.cpp b/src/tests/utf.cpp
index 40d4194..ef7297d 100644
--- a/src/tests/utf.cpp
+++ b/src/tests/utf.cpp
@@ -7,6 +7,7 @@ using namespace Bu;
7 7
8int main() 8int main()
9{ 9{
10 sio << "Code: " << Bu::__calcHashCode( Bu::UtfString() ) << sio.nl;
10 sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") ) 11 sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") )
11 << sio.nl; 12 << sio.nl;
12 13