diff options
-rw-r--r-- | crypto/tcrypt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 5a95b4a14c2b..85a88a71ff53 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -266,16 +266,16 @@ static void test_cipher(char *algo, int mode, int enc, | |||
266 | char *key; | 266 | char *key; |
267 | struct cipher_testvec *cipher_tv; | 267 | struct cipher_testvec *cipher_tv; |
268 | struct scatterlist sg[8]; | 268 | struct scatterlist sg[8]; |
269 | char e[11], m[4]; | 269 | const char *e, *m; |
270 | 270 | ||
271 | if (enc == ENCRYPT) | 271 | if (enc == ENCRYPT) |
272 | strncpy(e, "encryption", 11); | 272 | e = "encryption"; |
273 | else | 273 | else |
274 | strncpy(e, "decryption", 11); | 274 | e = "decryption"; |
275 | if (mode == MODE_ECB) | 275 | if (mode == MODE_ECB) |
276 | strncpy(m, "ECB", 4); | 276 | m = "ECB"; |
277 | else | 277 | else |
278 | strncpy(m, "CBC", 4); | 278 | m = "CBC"; |
279 | 279 | ||
280 | printk("\ntesting %s %s %s\n", algo, m, e); | 280 | printk("\ntesting %s %s %s\n", algo, m, e); |
281 | 281 | ||