iphlpapi/tests: Increase buffer size to prevent overflow.

This commit is contained in:
Huw Davies 2013-09-13 12:52:52 +01:00 committed by Alexandre Julliard
parent 73e0efac9d
commit 01d5632e5e
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ static void testGetIpForwardTable(void)
trace( "IP forward table: %u entries\n", buf->dwNumEntries );
for (i = 0; i < buf->dwNumEntries; i++)
{
char buffer[40];
char buffer[100];
sprintf( buffer, "dest %s", ntoa( buf->table[i].dwForwardDest ));
sprintf( buffer + strlen(buffer), " mask %s", ntoa( buf->table[i].dwForwardMask ));
trace( "%u: %s gw %s if %u type %u\n", i, buffer,