]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't allocate a 512 byte buffer on the stack in snplwrite. It's
authordd <dd@FreeBSD.org>
Thu, 16 Aug 2001 06:00:57 +0000 (06:00 +0000)
committerdd <dd@FreeBSD.org>
Thu, 16 Aug 2001 06:00:57 +0000 (06:00 +0000)
commit4566001b5c628c29dddf59dc85bcab12149aecf8
treecaa5f823f34503f1761fea8e9984ffd513244e83
parent033062de2808b7afabf858d790f3344faecefef8
Don't allocate a 512 byte buffer on the stack in snplwrite.  It's
probably harmless in this case, since the latter is called on tty
input, which is usually a result of some system call, so we've got
plenty of stack left.  It's still nice to fix these things, though, in
case somebody ever decides this driver is a good example of something
(perhaps "what you probably shouldn't do").
sys/dev/snp/snp.c