diff options
-rw-r--r-- | screenshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c index ba309bf57..ad7c2064a 100644 --- a/screenshot.c +++ b/screenshot.c @@ -332,7 +332,7 @@ static bool MakePCXImage(const char *name, ScreenshotCallback *callb, void *user for (i = 0; i != n; i++) { int runcount = 1; byte *bufp = buff + i * w; - byte runchar = buff[0]; + byte runchar = *bufp++; uint left; // for each pixel... |