[lkml]   [2003]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [BUG] in drivers/char/joystick/magellan.c
On Tue, 28 January 2003 18:57:57 +0100, Martin Mares wrote:
> As far as I remember, the ANSI C permits initialization of a char array
> with a string of the same length and defines that the trailing \0 is
> dropped in such cases. However, I cannot quote the right chapter and
> verse by heart nor am I sure it's still permitted by C99, so better
> check yourself.

This is interesting, but still dangerous, if the code ever gets
changed. You remember what a Mr. Murphy said about having several
possibilities and one of them leading to a disaster? :)


Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.116 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site