Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: m-labs/flickernoise
base: a7e1867
...
head fork: m-labs/flickernoise
compare: d4ef921
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/pixbuf/loaderjpeg.c
2  src/pixbuf/loaderjpeg.c
View
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
+#include <string.h>
#include <jpeglib.h>
#include "pixbuf.h"
@@ -75,6 +76,7 @@ struct pixbuf *pixbuf_load_jpeg(char *filename)
ret = pixbuf_new(cinfo.image_width, cinfo.image_height);
if(ret == NULL) goto free5;
+ ret->filename = strdup(filename);
if(!pixbuf_dither(ret->pixels, row_pointers, cinfo.image_width, cinfo.image_height, 0)) {
pixbuf_dec_ref(ret);
ret = NULL;

No commit comments for this range

Something went wrong with that request. Please try again.