about summary refs log tree commit diff
path: root/converter/other/winicontopam.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/winicontopam.c')
-rw-r--r--converter/other/winicontopam.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/converter/other/winicontopam.c b/converter/other/winicontopam.c
index c9770686..7a206f5c 100644
--- a/converter/other/winicontopam.c
+++ b/converter/other/winicontopam.c
@@ -1148,14 +1148,16 @@ convertPng(const unsigned char * const image,
            FILE *                const ofP,
            struct IconDirEntry * const dirEntryP) {
 
-    struct bufferDesc imageBuffer;
+    pm_bufferDesc imageBuffer;
 
     reportPngInfo(image, dirEntryP);
 
-    imageBuffer.size = dirEntryP->size;
-    imageBuffer.buffer = (unsigned char *)image;
+    imageBuffer.size              = dirEntryP->size;
+    imageBuffer.buffer            = (unsigned char *)image;
+    imageBuffer.bytesTransferredP = NULL;
+
+    fflush(stdout);
 
-    fflush (stdout);
     pm_system_lp("pngtopam", pm_feed_from_memory, &imageBuffer,
                  NULL /* stdout accepter */, NULL,
                  "pngtopam", "-alphapam", NULL);