~ruther/CTU-FEE-B0B35APO-Semestral-project

dba42e314392f59fc921daf5ef164c5891e1c986 — František Boháček 3 years ago a1f84f5
fix: ppm image loading
1 files changed, 2 insertions(+), 2 deletions(-)

M image-viewer/src/image_loader.c
M image-viewer/src/image_loader.c => image-viewer/src/image_loader.c +2 -2
@@ 47,9 47,9 @@ image_error_t image_loader_load_ppm(image_t *image) {
  }

  char null[10];
  short height, width, maxBrightness;
  short maxBrightness;

  if (fscanf(file, "%2s %hd %hd %hd", null, &width, &height, &maxBrightness) != 4) {
  if (fscanf(file, "%2s %hd %hd %hd", null, &image->width, &image->height, &maxBrightness) != 4) {
    return IMERR_WRONG_FORMAT;
  }


Do not follow this link