[mapserver-commits] r12838 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Dec 2 17:03:25 EST 2011
Author: assefa
Date: 2011-12-02 14:03:25 -0800 (Fri, 02 Dec 2011)
New Revision: 12838
Modified:
trunk/mapserver/mapcache/src/buffer.c
Log:
cast void * before using it in memcpy (#4106)
Modified: trunk/mapserver/mapcache/src/buffer.c
===================================================================
--- trunk/mapserver/mapcache/src/buffer.c 2011-12-02 21:57:03 UTC (rev 12837)
+++ trunk/mapserver/mapcache/src/buffer.c 2011-12-02 22:03:25 UTC (rev 12838)
@@ -60,11 +60,7 @@
if(total > buffer->avail)
_mapcache_buffer_realloc(buffer,total);
-#ifndef _WIN32
- memcpy(buffer->buf + buffer->size, data, len);
-#else
memcpy(((unsigned char*)buffer->buf) + buffer->size, data, len);
-#endif
buffer->size += len;
return len;
More information about the mapserver-commits
mailing list