Date: Thu, 5 Jun 2003 11:00:31 -0700 (PDT) From: Mathew Kanner <mat@cnd.mcgill.ca> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/52960: kbdcontrol macros don't work when len% Message-ID: <200306051800.h55I0VFs065502@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/52960; it has been noted by GNATS. From: Mathew Kanner <mat@cnd.mcgill.ca> To: Dmitry Sivachenko <mitya@demos.su> Cc: freebsd-gnats-submit@FreeBSD.org, mat@hak.cnd.mcgill.ca Subject: Re: kern/52960: kbdcontrol macros don't work when len% Date: Thu, 5 Jun 2003 13:55:06 -0400 On Jun 05, Dmitry Sivachenko wrote: > The following patch fixes the problem. When you supply exactly > MAXFK(=16) chararacters as a macro, you should use strncpy which does not > append trailing '\0'. Wow, that was fast. Patch works on -stable and -current. --Mat -- Brain: Pinky, are you pondering what I'm pondering? Pinky: I think so Brain, but pants with horizontal stripes make me look chubby.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306051800.h55I0VFs065502>