summaryrefslogtreecommitdiff
path: root/vhook/ppm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-12 01:44:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-12 01:44:02 +0000
commit1f3f9507997830c8fc229e53dadca3ef6eb8149f (patch)
treed36815d663188e6968666fc893f524ae8e85e45b /vhook/ppm.c
parent52f4aea0def80c645f8c3dccf8510ea5c1c174a3 (diff)
downloadffmpeg-1f3f9507997830c8fc229e53dadca3ef6eb8149f.tar.gz
disallow strcat
Originally committed as revision 3826 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/ppm.c')
-rw-r--r--vhook/ppm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vhook/ppm.c b/vhook/ppm.c
index 022f6a106b..8e48dd9574 100644
--- a/vhook/ppm.c
+++ b/vhook/ppm.c
@@ -55,14 +55,15 @@ rwpipe *rwpipe_open( int argc, char *argv[] )
if ( this->pid == 0 )
{
- char *command = av_mallocz( 10240 );
+#define COMMAND_SIZE 10240
+ char *command = av_mallocz( COMMAND_SIZE );
int i;
strcpy( command, "" );
for ( i = 0; i < argc; i ++ )
{
- strcat( command, argv[ i ] );
- strcat( command, " " );
+ pstrcat( command, COMMAND_SIZE, argv[ i ] );
+ pstrcat( command, COMMAND_SIZE, " " );
}
dup2( output[ 0 ], STDIN_FILENO );