plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 07b24459ea4f06f7e86b7c4557eea5b451354575
parent d92ac2d1b424e059e8e81d6dd58f0ac195fe3253
Author: Igor Böhm <boehm.igor@gmail.com>
Date:   Sat, 25 Jul 2020 21:54:02 +0200

Bail out if convW2M(...) indicates failure.

Diffstat:
Msrc/libdraw/event.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libdraw/event.c b/src/libdraw/event.c @@ -207,7 +207,8 @@ startrpc(int type) Wsysmsg w; w.type = type; - convW2M(&w, buf, sizeof buf); + if(convW2M(&w, buf, sizeof buf) == 0) + return nil; return muxrpcstart(display->mux, buf); }