]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imaggif.cpp
Merge in from trunk r64802 - r68625
[wxWidgets.git] / src / common / imaggif.cpp
index b90bd8fb99502b18b5f49bccb86a4131dc0d2cd2..52f9cf14c466778c056f89b41ea7a36f3446585f 100644 (file)
@@ -643,7 +643,7 @@ bool wxGIFHandler_WriteWord(wxOutputStream *stream, wxUint16 word)
 
     buf[0] = word & 0xff;
     buf[1] = (word >> 8) & 0xff;
-    return wxGIFHandler_Write(stream, &word, sizeof(word));
+    return wxGIFHandler_Write(stream, &buf, sizeof(buf));
 }
 
 bool wxGIFHandler_WriteHeader(wxOutputStream *stream, int width, int height,