Explorar o código

no room for nul terminator

Francois Perrad %!s(int64=8) %!d(string=hai) anos
pai
achega
b6c27c2f08
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/stream/chacha/chacha_setup.c

+ 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)