1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pump/off-by-one.patch
5 # Copyright (C) 2008 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- pump-0.8.24/pump.c.orig 2005-10-11 19:35:59.000000000 +0200
18 +++ pump-0.8.24/pump.c 2008-08-25 14:42:48.000000000 +0200
20 if (intf[i].set & PUMP_NETINFO_HAS_HOSTNAME)
21 strncpy(cmd.u.status.hostname,
22 intf->hostname, sizeof(cmd.u.status.hostname));
23 - cmd.u.status.hostname[sizeof(cmd.u.status.hostname)] = '\0';
24 + cmd.u.status.hostname[sizeof(cmd.u.status.hostname) - 1] = '\0';
26 if (intf[i].set & PUMP_NETINFO_HAS_DOMAIN)
27 strncpy(cmd.u.status.domain,