From: <dg...@us...> - 2008-01-13 19:35:06
|
Update of /cvsroot/xine/xine-ui/src/fb In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3293/src/fb Modified Files: post.c Log Message: Replace instances where s(n)printf was used with just %s as format string with str(n)cpy or other alternatives. Index: post.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/fb/post.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- post.c 24 Dec 2007 12:44:39 -0000 1.10 +++ post.c 13 Jan 2008 19:35:07 -0000 1.11 @@ -209,7 +209,7 @@ if(pobj.param->type == POST_PARAM_TYPE_CHAR) { int maxlen = pobj.param->size / sizeof(char); - snprintf((char *)(pobj.param_data + pobj.param->offset), maxlen, "%s", p); + strncpy((char *)(pobj.param_data + pobj.param->offset), maxlen-1, p); _pplugin_update_parameter(&pobj); } else |