summaryrefslogtreecommitdiff
path: root/x11-wm/blackbox/files/patch-src_Screen.cc
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2011-07-08 07:28:46 +0000
committerGreg Lewis <glewis@FreeBSD.org>2011-07-08 07:28:46 +0000
commitf326f69e5725baa9a10ea750fc689eea596667a8 (patch)
treea948e50418ae898f63092a2f371cd4bd25dfb6a4 /x11-wm/blackbox/files/patch-src_Screen.cc
parent- Update to 0.12 (diff)
. Try harder to make sure the flags returned from getFlags isn't negative,
since a number of places in the code check for that and assume that it means an error occurred. On FreeBSD, in particular, the value of ifr_flags can be negative if multicast is enabled on the socket since the possible flags have expanded to fill more than a short. Instead of blindly promoting ifr_flags to an int, which will preserve the sign, we fill the int return value with ifr_flagshigh in the high 16 bits and ifr_flags in the low 16 bits. PR: 155186 Reported by: Alex Hayward <xelah-freebsd-pr@xelah.com>
Notes
Notes: svn path=/head/; revision=277348
Diffstat (limited to 'x11-wm/blackbox/files/patch-src_Screen.cc')
0 files changed, 0 insertions, 0 deletions