9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] lpdaemon
@ 2013-06-05 11:38 yaroslav
  2013-06-05 13:06 ` erik quanstrom
  2013-06-05 13:13 ` Don Bailey
  0 siblings, 2 replies; 9+ messages in thread
From: yaroslav @ 2013-06-05 11:38 UTC (permalink / raw)
  To: 9fans

in /sys/src/cmd/lp/lpdaemon.c:297,310

These
			info.host[strlen(info.host)] = '\0';
			…
			info.user[strlen(info.user)] = '\0';

look nonsence as zeros are placed exactly where they already are.
Should read as in following instead:

			info.host[NAMELEN] = '\0';
			…
			info.user[NAMELEN] = '\0';

shoudn't it?




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

end of thread, other threads:[~2013-06-05 14:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05 11:38 [9fans] lpdaemon yaroslav
2013-06-05 13:06 ` erik quanstrom
2013-06-05 13:13 ` Don Bailey
2013-06-05 13:20   ` erik quanstrom
2013-06-05 13:40     ` Don Bailey
2013-06-05 13:38   ` Friedrich Psiorz
2013-06-05 13:54     ` Don Bailey
2013-06-05 14:09       ` erik quanstrom
2013-06-05 14:29         ` Don Bailey

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 NNTP newsgroup(s).