From 83d8630f843cf4092d00d2d2d89be8e5c0c04d6c Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Sun, 10 Mar 2013 16:38:56 -0700 Subject: [PATCH] Ticket #255: Changed input param of convert() to const char*. --- protocols/vnc/include/convert.h | 2 +- protocols/vnc/src/convert.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/vnc/include/convert.h b/protocols/vnc/include/convert.h index d6cf1258..8b373227 100644 --- a/protocols/vnc/include/convert.h +++ b/protocols/vnc/include/convert.h @@ -47,7 +47,7 @@ * @return A newly allocated string that is the result of the conversion, or NULL * if an error has occured. */ -char* convert (const char* from_charset, const char* to_charset, char* input); +char* convert (const char* from_charset, const char* to_charset, const char* input); #endif diff --git a/protocols/vnc/src/convert.c b/protocols/vnc/src/convert.c index 55cd6daa..7becb34c 100644 --- a/protocols/vnc/src/convert.c +++ b/protocols/vnc/src/convert.c @@ -40,7 +40,7 @@ #include #include -char* convert(const char* from_charset, const char* to_charset, char* input) { +char* convert(const char* from_charset, const char* to_charset, const char* input) { size_t input_remaining; size_t output_remaining; size_t bytes_converted = 0; @@ -58,7 +58,7 @@ char* convert(const char* from_charset, const char* to_charset, char* input) { return NULL; input_remaining = strlen(input); - input_buffer = input; + input_buffer = (char*) input; /* Start the output buffer the same size as the input buffer */ output_length = input_remaining;