From 2fd20b36e1e27f7f5b57e89953d5fa5d19e4ce3e Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Fri, 16 Nov 2012 08:52:07 -0500 Subject: [PATCH] preserve const qualifier --- src/crypto_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_impl.c b/src/crypto_impl.c index 664cb629..c8f5d514 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -348,7 +348,7 @@ int sqlcipher_codec_ctx_set_cipher(codec_ctx *ctx, const char *cipher_name, int int sqlcipher_codec_ctx_get_cipher(Parse *pParse, codec_ctx *ctx, int for_ctx) { cipher_ctx *c_ctx = for_ctx ? ctx->write_ctx : ctx->read_ctx; EVP_CIPHER *evp_cipher = c_ctx->evp_cipher; - char* name = EVP_CIPHER_name(evp_cipher); + const char* name = EVP_CIPHER_name(evp_cipher); codec_vdbe_return_static_string(pParse, "cipher", name); return SQLITE_OK;