1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00
Andrew Bartlett 34b0ee8328 messaging_dgm: avoid GCC snprintf warnings in messaging_dgm_out_create
We are trying to put something that (in theory) could be 109 bytes
long, into the sockaddr_un.sun_path field which has a fixed size of
108 bytes. The "in theory" part is that one of the components is a
pid, which although stored as 32 bits is in practice 16 bits, so the
maximum size is not actually hit.

This is all very annoying, because the length is checked anyway and
all this achieves is silencing a warning.

Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Feb 10 09:05:31 CET 2017 on sn-devel-144
2017-02-10 09:05:31 +01:00
..
2017-01-09 14:34:11 +01:00
2014-01-03 05:04:44 +01:00
2017-01-06 12:28:19 +01:00
2015-12-22 02:22:50 +01:00
2016-12-11 11:17:24 +01:00
2017-01-09 18:15:19 +01:00
2017-02-01 22:06:50 +01:00
2017-01-22 18:30:11 +01:00
2015-03-17 11:30:52 +01:00
2017-02-09 20:04:12 +01:00