Files
ports/games/liquidwar/files/patch-src_wwwsrv.c
Tobias Kortkamp 6751830b8d games/liquidwar: Update to 5.6.5
This prepares it for Allegro 4.4.3.1.

- Add upstream site to MASTER_SITES
- Add missing DOCS option
- Stop installing the info page; the man page contains the same information
- Add LICENSE and do not install the license multiple times.  One
  copy is more than enough.
- Simplify install and do not install with absolute symlinks

PR:		235479
2019-03-09 07:19:48 +00:00

19 lines
697 B
C

--- src/wwwsrv.c.orig 2018-12-23 19:04:36 UTC
+++ src/wwwsrv.c
@@ -100,12 +100,12 @@ lw_wwwsrv_init (LW_WWWSRV_DATA * data,
data->privacy = privacy;
data->log = log;
- strncpy (data->metaserver, metaserver, URL_SIZE);
+ strncpy (data->metaserver, metaserver, sizeof(data->metaserver));
data->port = port;
data->busy_players = busy_players;
data->max_players = max_players;
- strncpy (data->password, password, PASSWORD_SIZE);
- strncpy (data->comment, comment, COMMENT_SIZE);
+ strncpy (data->password, password, sizeof(data->password));
+ strncpy (data->comment, comment, sizeof(data->comment));
}
/*------------------------------------------------------------------*/