kern/52960: kbdcontrol macros don't work when len%

Mathew Kanner mat at cnd.mcgill.ca
Thu Jun 5 11:00:32 PDT 2003


The following reply was made to PR kern/52960; it has been noted by GNATS.

From: Mathew Kanner <mat at cnd.mcgill.ca>
To: Dmitry Sivachenko <mitya at demos.su>
Cc: freebsd-gnats-submit at FreeBSD.org, mat at 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.


More information about the freebsd-bugs mailing list