Index: libvo/vo_png.c
===================================================================
--- libvo/vo_png.c	(revision 32708)
+++ libvo/vo_png.c	(working copy)
@@ -129,13 +129,13 @@
     AVFrame pic;
     int buffersize;
     int res;
-    char buf[100];
+    char buf[BUFLENGTH];
     FILE *outfile;
 
     // if -dr or -slices then do nothing:
     if(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK)) return VO_TRUE;
 
-    snprintf (buf, 100, "%s/%08d.png", png_outdir, ++framenum);
+    snprintf(buf, BUFLENGTH, "%s/%08d.png", png_outdir, ++framenum);
     outfile = fopen(buf, "wb");
     if (!outfile) {
         mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_PNG_ErrorOpeningForWriting, strerror(errno));
