Skip to content

Commit

Permalink
Increase buffer size in filename append utility to support more liber…
Browse files Browse the repository at this point in the history
…ty files.

Signed-off-by: Mike Inouye <mikeinouye@google.com>
  • Loading branch information
mikesinouye committed Sep 18, 2024
1 parent db245f5 commit db735b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc/extra/extraUtilFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ char * Extra_FileNameGeneric( char * FileName )
***********************************************************************/
char * Extra_FileNameGenericAppend( char * pBase, char * pSuffix )
{
static char Buffer[1000];
static char Buffer[2000];
char * pDot;
assert( strlen(pBase) + strlen(pSuffix) < 1000 );
assert( strlen(pBase) + strlen(pSuffix) < 2000 );
strcpy( Buffer, pBase );
if ( (pDot = strrchr( Buffer, '.' )) )
*pDot = 0;
Expand Down

0 comments on commit db735b6

Please sign in to comment.