patch-magic_c 574 B

1234567891011121314151617181920
  1. $OpenBSD: patch-magic_c,v 1.2 2012/12/11 11:01:31 sthen Exp $
  2. --- magic.c.orig Mon Jul 21 21:35:31 2003
  3. +++ magic.c Tue Dec 11 10:10:23 2012
  4. @@ -23,6 +23,7 @@
  5. * SOFTWARE.
  6. */
  7. #include <stdio.h>
  8. +#include <string.h>
  9. /* Description of the various file formats and their magic numbers */
  10. struct magic {
  11. @@ -35,6 +36,7 @@ struct magic {
  12. static struct magic magic[] = {
  13. { "image/gif", "GIF", 0 },
  14. { "image/jpeg", "\377\330\377", 0 },
  15. + { "image/png", "\211PNG", 0 },
  16. { "video/mpeg", "\0\0\001\263", 4 },
  17. { "application/postscript", "%!", 0 },
  18. };