X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis%2Fwms.c;h=51f69bc8ca8379189d134027cdf493b1f1bfab88;hp=f62928de6d31c9c32f4ed8c12c4bce8799c0b1b2;hb=128608a085fd2a66e8145868c30b05c5c6e1cc3b;hpb=84c4eeaaf6a795b5b4385f2c63031acaefd70730 diff --git a/src/gis/wms.c b/src/gis/wms.c index f62928d..51f69bc 100644 --- a/src/gis/wms.c +++ b/src/gis/wms.c @@ -478,7 +478,7 @@ void srtm_pixbuf_loader(WmsCacheNode *node, const gchar *path, gint width, gint gint stride = gdk_pixbuf_get_rowstride(pixbuf); gint16 *data; - gchar **char_data = (gchar**)char_data; + gchar **char_data = (gchar**)&data; g_file_get_contents(path, char_data, NULL, NULL); for (int r = 0; r < height; r++) { for (int c = 0; c < width; c++) {