Changeset: 62c36a6648d1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=62c36a6648d1
Modified Files:
        common/stream/stream.c
Branch: default
Log Message:

Return pointer to start of allocated string, not to the end.


diffs (15 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -298,9 +298,10 @@ cvfilename(const char *filename)
                        size_t size = 4 * len;
                        ICONV_CONST char *from = (ICONV_CONST char *) filename;
                        char *r = malloc(size);
+                       char *p = r;
 
                        if (r &&
-                           iconv(cd, &from, &len, &r, &size) != (size_t) -1) {
+                           iconv(cd, &from, &len, &p, &size) != (size_t) -1) {
                                iconv_close(cd);
                                return r;
                        } else if (r)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to