Permalink
Browse files

trying to fix buffer

  • Loading branch information...
1 parent d636b5d commit d309f91b3841af83502acf10660b052ac95b9c9b @pagameba committed Nov 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapserver_bindings.cc
@@ -191,9 +191,9 @@ class Mapserver {
char * data = (char *)msSaveImageBuffer(im, &size, map->_map->outputformat);
// Buffer *retbuf = Buffer::New((char *)data, (size_t)size);
- Buffer *retbuf = Buffer::New(size);
+ Buffer *retbuf = Buffer::New(data, (size_t) size);
- memcpy(Buffer::Data(retbuf), data, size);
+ // memcpy(Buffer::Data(retbuf), data, size);
msFree(data);
msFreeImage(im);

0 comments on commit d309f91

Please sign in to comment.