mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
increase buffer size: longer relay name caused stack overwrite
failures.
This commit is contained in:
parent
a0a8a816a4
commit
72a3ed1891
1 changed files with 2 additions and 1 deletions
|
@ -390,7 +390,8 @@ do_deletes( int sockfd, const char** connNames, int nConnNames )
|
|||
char buf[4096];
|
||||
int nused = 0;
|
||||
for ( ii = 0; ii < nConnNames; ++ii ) {
|
||||
char tmp[32];
|
||||
char tmp[128];
|
||||
assert( strlen(connNames[ii]) < sizeof(tmp)-1 );
|
||||
strcpy( tmp, connNames[ii] );
|
||||
char* seedp = strrchr( tmp, '/' );
|
||||
assert( !!seedp );
|
||||
|
|
Loading…
Add table
Reference in a new issue