2
0
Эх сурвалжийг харах

no room for nul terminator

Francois Perrad 8 жил өмнө
parent
commit
b6c27c2f08

+ 2 - 2
src/stream/chacha/chacha_setup.c

@@ -16,8 +16,8 @@
 
 #ifdef LTC_CHACHA
 
-static const char sigma[16] = "expand 32-byte k";
-static const char tau[16]   = "expand 16-byte k";
+static const char * const sigma = "expand 32-byte k";
+static const char * const tau   = "expand 16-byte k";
 
 /**
    Initialize an ChaCha context (only the key)