public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Buffer boundary problem in tty_write().
@ 2000-11-06  8:58 Alex Mathews
  2000-11-06 11:40 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Mathews @ 2000-11-06  8:58 UTC (permalink / raw)
  To: eCos List

Proposed fix is the following:


-- Index: tty.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/tty.c,v
retrieving revision 1.6
diff -r1.6 tty.c
178c178
<         if ((size == (BUFSIZE-1)) ||
---
>         if ((size >= (BUFSIZE-1)) ||



Alex Mathews
CrosStor Software, Inc.
908-226-0100 ext 148
alexma@crosstor.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Buffer boundary problem in tty_write().
  2000-11-06  8:58 [ECOS] Buffer boundary problem in tty_write() Alex Mathews
@ 2000-11-06 11:40 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-11-06 11:40 UTC (permalink / raw)
  To: Alex Mathews; +Cc: eCos List

Alex Mathews wrote:
> 
> Proposed fix is the following:
> 
> -- Index: tty.c
> 178c178
> <         if ((size == (BUFSIZE-1)) ||
> ---
> >         if ((size >= (BUFSIZE-1)) ||

Good catch. Thanks, applied.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-06 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-06  8:58 [ECOS] Buffer boundary problem in tty_write() Alex Mathews
2000-11-06 11:40 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).