diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-05 17:58:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-05 17:58:13 (GMT) |
commit | 85d1500c5027147c1ab54c07cd64381426932b68 (patch) | |
tree | 1540b7e25592931396d4072545f2b414000413d6 /generic/tclZipfs.c | |
parent | 15b5f31cafb65b5055b670feabbbcf17d7af45f4 (diff) | |
download | tcl-85d1500c5027147c1ab54c07cd64381426932b68.zip tcl-85d1500c5027147c1ab54c07cd64381426932b68.tar.gz tcl-85d1500c5027147c1ab54c07cd64381426932b68.tar.bz2 |
tclZipfs.c:1857:33: warning: request for implicit conversion from ‘void *’ to ‘char *’ not permitted in C++ [-Wc++-compat]
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r-- | generic/tclZipfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index 0b1963b..4ecce48 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -1854,8 +1854,8 @@ ZipfsSetup(void) Tcl_InitHashTable(&ZipFS.zipHash, TCL_STRING_KEYS); ZipFS.idCount = 1; ZipFS.wrmax = DEFAULT_WRITE_MAX_SIZE; - ZipFS.fallbackEntryEncoding = - Tcl_Alloc(strlen(ZIPFS_FALLBACK_ENCODING) + 1); + ZipFS.fallbackEntryEncoding = (char *) + ckalloc(strlen(ZIPFS_FALLBACK_ENCODING) + 1); strcpy(ZipFS.fallbackEntryEncoding, ZIPFS_FALLBACK_ENCODING); ZipFS.utf8 = Tcl_GetEncoding(NULL, "utf-8"); ZipFS.initialized = 1; |