Date: Sun, 20 Aug 2006 00:01:09 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104573 for review Message-ID: <200608200001.k7K019FQ029747@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104573 Change 104573 by jb@jb_zoo on 2006/08/20 00:00:18 Handle newline characters properly in the puts method. Affected files ... .. //depot/projects/dtrace/src/sys/dev/sio/sio.c#5 edit Differences ... ==== //depot/projects/dtrace/src/sys/dev/sio/sio.c#5 (text+ko) ==== @@ -2534,8 +2534,11 @@ { int i; - for (i = 0; i < num; i++) + for (i = 0; i < num; i++) { + if (p[i] == '\n') + sio_cnputc(cp, '\r'); sio_cnputc(cd, p[i] & 0xff); + } } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608200001.k7K019FQ029747>