Skip to content

Commit e48ccb5

Browse files
dimhotepusmastercoms
authored andcommitted
vvis: Do not overflow portalfile buffer when command line arg length >= 1024
Closes ValveSoftware#749
1 parent f2925ec commit e48ccb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/vvis/vvis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ int RunVVis( int argc, char **argv )
11671167
}
11681168
else
11691169
{
1170-
sprintf ( portalfile, "%s%s", inbase, argv[i] );
1170+
V_sprintf_safe ( portalfile, "%s%s", inbase, argv[i] );
11711171
Q_StripExtension( portalfile, portalfile, sizeof( portalfile ) );
11721172
}
11731173
strcat (portalfile, ".prt");

0 commit comments

Comments
 (0)