From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 29 Jul 2010 09:27:56 -0600 From: EBo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <764fc0b0ab4cc1f9a890bc61a61a7c81@ladd.quanstro.net> References: <0522651bfa90c83ddb192a77ddaccb78@swcp.com> <460c4983c43135098e3c1f2b36623833@swcp.com> <764fc0b0ab4cc1f9a890bc61a61a7c81@ladd.quanstro.net> Message-ID: <07d76da82c98729a30df3c13ae0e1766@swcp.com> User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] writing to ctl using fprint and write Topicbox-Message-UUID: 44d3d3da-ead6-11e9-9d60-3106f5b1d025 > relax. not stupid, subtle. it takes vigilance to keep > sizeof, nelem, strlen, and the number of characters > straight. I was not offended or anything. I spent WAY to much time missing on that one before asking for another set of eyes. I just felt a bit foolish for missing something that simple, and yes it is a subtle error. That's all. The funny thing is that I had it reading correctly using sizeof(some struct), and then blew it when I was writing a string. Anyway, it all works now. I really do appreciate the catch. EBo --