patch-rw_readWritePS_c 416 B

123456789101112131415
  1. $OpenBSD: patch-rw_readWritePS_c,v 1.1 2017/05/17 22:39:53 espie Exp $
  2. Index: rw/readWritePS.c
  3. --- rw/readWritePS.c.orig
  4. +++ rw/readWritePS.c
  5. @@ -383,7 +383,7 @@ ReadPS(char *file)
  6. fclose(fp);
  7. type_doc = TestPS(file);
  8. - if (!type_doc) return; /* should not happen anyway ... */
  9. + if (!type_doc) return NULL; /* should not happen anyway ... */
  10. strncpy(rad, file, 256),
  11. rad[256] = '\0';