message: simplify -EMSGSIZE test
authorDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 14:12:39 +0000 (15:12 +0100)
committerDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 14:12:39 +0000 (15:12 +0100)
commite776f3ee18797658c25e04ae85358073e6baa49a
tree75ca993bb27033eea594e68487dabc16b5789d53
parenta3b79e31d10dad0fb19f822b7134daeaed54a016
message: simplify -EMSGSIZE test

Simplify the code a bit and check for pool size overflows after we did
the modulo operation.

Signed-off-by: Daniel Mack <daniel@zonque.org>
message.c