From: Steven S. <sm...@us...> - 2013-10-28 00:59:28
|
Update of /cvsroot/mjpeg/mjpeg_play/lavtools In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv30046 Modified Files: jpeg2yuv.c Log Message: why use a sprintf to copy a string - gives warning error format string is not a string literal (potentially insecure) [-Wformat-security] Index: jpeg2yuv.c =================================================================== RCS file: /cvsroot/mjpeg/mjpeg_play/lavtools/jpeg2yuv.c,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** jpeg2yuv.c 6 Jan 2008 03:28:00 -0000 1.35 --- jpeg2yuv.c 28 Oct 2013 00:59:25 -0000 1.36 *************** *** 452,456 **** if (firstjpeg) { p = firstjpeg; ! sprintf(jpegname, firstjpeg); firstjpeg = NULL; } --- 452,456 ---- if (firstjpeg) { p = firstjpeg; ! strcpy(jpegname, firstjpeg); firstjpeg = NULL; } |