[1152] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r1100 - trunk/owl

daemon@ATHENA.MIT.EDU (geofft@MIT.EDU)
Thu Oct 29 18:13:32 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
Date: Sun, 10 Aug 2008 08:33:51 -0400 (EDT)
To: dirty-owl-hackers@mit.edu
From: geofft@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU

Author: geofft
Date: 2008-08-10 08:33:50 -0400 (Sun, 10 Aug 2008)
New Revision: 1100

Modified:
   trunk/owl/functions.c
Log:
Fix a buffer overflow -> segfault due to strcat

Modified: trunk/owl/functions.c
===================================================================
--- trunk/owl/functions.c	2008-08-04 02:00:30 UTC (rev 1099)
+++ trunk/owl/functions.c	2008-08-10 12:33:50 UTC (rev 1100)
@@ -282,7 +282,7 @@
   owl_editwin_clear(e);
   owl_editwin_set_dotsend(e);
   strcpy(buff, "----> ");
-  strcat(buff, line);
+  strncat(buff, line, 1016);
   strcat(buff, "\n");
   owl_editwin_set_locktext(e, buff);
 


home help back first fref pref prev next nref lref last post