Skip to content
This repository
Browse code

trying to fix buffer

  • Loading branch information...
commit d309f91b3841af83502acf10660b052ac95b9c9b 1 parent d636b5d
Paul Spencer authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  mapserver_bindings.cc
4  mapserver_bindings.cc
@@ -191,9 +191,9 @@ class Mapserver {
191 191
 
192 192
           char * data = (char *)msSaveImageBuffer(im, &size, map->_map->outputformat);
193 193
           // Buffer *retbuf = Buffer::New((char *)data, (size_t)size);
194  
-          Buffer *retbuf = Buffer::New(size);
  194
+          Buffer *retbuf = Buffer::New(data, (size_t) size);
195 195
           
196  
-          memcpy(Buffer::Data(retbuf), data, size);
  196
+          // memcpy(Buffer::Data(retbuf), data, size);
197 197
 
198 198
           msFree(data);
199 199
           msFreeImage(im);

0 notes on commit d309f91

Please sign in to comment.
Something went wrong with that request. Please try again.