861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
18 lines
709 B
Diff
18 lines
709 B
Diff
--- a/src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200
|
|
+++ b/src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200
|
|
@@ -100,12 +100,12 @@
|
|
|
|
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));
|
|
}
|
|
|
|
/*------------------------------------------------------------------*/
|