diff libvo/vo_png.c @ 612:77e0094f0cce

some warnings killed
author szabii
date Tue, 24 Apr 2001 10:21:12 +0000
parents 670d47b4ce10
children 874ba7049c1a
line wrap: on
line diff
--- a/libvo/vo_png.c	Tue Apr 24 05:58:09 2001 +0000
+++ b/libvo/vo_png.c	Tue Apr 24 10:21:12 2001 +0000
@@ -12,6 +12,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <errno.h>
 
 #include <png.h>
 //#include "/usr/include/png.h"
@@ -146,7 +147,7 @@
     
     png.fp = fopen (fname, "wb");
     if (png.fp == NULL) {
-	printf("\nPNG Error opening %s for writing!\n");
+	printf("\nPNG Error opening %s for writing!\n", strerror(errno));
        	png.status = ERROR;
        	return png;
     }