Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 230509 | Differences between
and this patch

Collapse All | Expand All

(-)subrip/subp2pgm.c (-2 / +5 lines)
Lines 401-414 Link Here
401
  {
401
  {
402
    for (n = 0; n < 16; n++)
402
    for (n = 0; n < 16; n++)
403
    {
403
    {
404
      fscanf (file, "%d", &c);
404
      if (fscanf (file, "%d", &c) != 1)
405
      {
406
        fprintf (stderr, "unable to get palette information from file '%s'\n", palet_file);
407
        break;
408
      }
405
409
406
      /* YUV */
410
      /* YUV */
407
      palette[n] = c;
411
      palette[n] = c;
408
412
409
      if (debug > 3)
413
      if (debug > 3)
410
        fprintf (stderr, "pal: %d #%d\n", n, palette[n]);
414
        fprintf (stderr, "pal: %d #%d\n", n, palette[n]);
411
412
    }
415
    }
413
    fclose (file);
416
    fclose (file);
414
  }
417
  }

Return to bug 230509