liquidwar-5.6.4-ovflfix.patch 696 B

12345678910111213141516171819
  1. --- src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200
  2. +++ src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200
  3. @@ -100,12 +100,12 @@
  4. data->privacy = privacy;
  5. data->log = log;
  6. - strncpy (data->metaserver, metaserver, URL_SIZE);
  7. + strncpy (data->metaserver, metaserver, sizeof(data->metaserver));
  8. data->port = port;
  9. data->busy_players = busy_players;
  10. data->max_players = max_players;
  11. - strncpy (data->password, password, URL_SIZE);
  12. - strncpy (data->comment, comment, URL_SIZE);
  13. + strncpy (data->password, password, sizeof(data->password));
  14. + strncpy (data->comment, comment, sizeof(data->comment));
  15. }
  16. /*------------------------------------------------------------------*/