Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2011 06:28:35 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r223857 - stable/8/usr.bin/calendar
Message-ID:  <201107080628.p686SZvn096222@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jh
Date: Fri Jul  8 06:28:35 2011
New Revision: 223857
URL: http://svn.freebsd.org/changeset/base/223857

Log:
  MFC r222755: Pass correct size to write(2).
  
  PR:		bin/155915

Modified:
  stable/8/usr.bin/calendar/io.c
Directory Properties:
  stable/8/usr.bin/calendar/   (props changed)

Modified: stable/8/usr.bin/calendar/io.c
==============================================================================
--- stable/8/usr.bin/calendar/io.c	Fri Jul  8 03:21:28 2011	(r223856)
+++ stable/8/usr.bin/calendar/io.c	Fri Jul  8 06:28:35 2011	(r223857)
@@ -346,7 +346,7 @@ closecal(FILE *fp)
 	write(pdes[1], pw->pw_name, strlen(pw->pw_name));
 	write(pdes[1], ">\nTo: <", 7);
 	write(pdes[1], pw->pw_name, strlen(pw->pw_name));
-	write(pdes[1], ">\nSubject: ", 12);
+	write(pdes[1], ">\nSubject: ", 11);
 	write(pdes[1], dayname, strlen(dayname));
 	write(pdes[1], "'s Calendar\nPrecedence: bulk\n\n", 30);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107080628.p686SZvn096222>