* sysdep.c (emacs_read, emacs_write): Check for negative sizes
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)
commit282726844359402dead010401a3257d106d68f69
tree9fcdb1a70e9dcf303b250a36b2eb8e5f5e8230f7
parent088d0d61c3529e34c7fae10983d7911d4204124d
* sysdep.c (emacs_read, emacs_write): Check for negative sizes

since callers should never pass a negative size.
Change the signature to match that of plain 'read' and 'write'; see
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00397.html>.
* lisp.h: Update prototypes of emacs_write and emacs_read.
src/ChangeLog
src/lisp.h
src/sysdep.c