Date: Mon, 6 Jun 2011 13:50:30 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222755 - head/usr.bin/calendar Message-ID: <201106061350.p56DoUdA033733@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jh Date: Mon Jun 6 13:50:29 2011 New Revision: 222755 URL: http://svn.freebsd.org/changeset/base/222755 Log: Pass correct size to write(2). PR: bin/155915 Submitted by: John Levine MFC after: 2 weeks Modified: head/usr.bin/calendar/io.c Modified: head/usr.bin/calendar/io.c ============================================================================== --- head/usr.bin/calendar/io.c Mon Jun 6 13:24:54 2011 (r222754) +++ head/usr.bin/calendar/io.c Mon Jun 6 13:50:29 2011 (r222755) @@ -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?201106061350.p56DoUdA033733>