From 76a2e4bb3d11c77f380122ace3b38427e3aa3f44 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 13 Mar 2004 22:11:57 +0000 Subject: use \0 for char. Joris Vink --- usr.bin/ul/ul.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/ul/ul.c') diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index d7d65a6bee9..285963b6f8a 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ul.c,v 1.11 2003/06/25 21:09:45 deraadt Exp $ */ +/* $OpenBSD: ul.c,v 1.12 2004/03/13 22:11:56 tedu Exp $ */ /* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */ /* @@ -31,7 +31,7 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1980, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ul.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: ul.c,v 1.11 2003/06/25 21:09:45 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ul.c,v 1.12 2004/03/13 22:11:56 tedu Exp $"; #endif /* not lint */ #include @@ -344,7 +344,7 @@ overstrike(void) } putchar('\r'); for (*cp=' '; *cp==' '; cp--) - *cp = 0; + *cp = '\0'; for (cp=lbuf; *cp; cp++) putchar(*cp); if (hadbold) { @@ -375,7 +375,7 @@ iattr(void) default: *cp++ = 'X'; break; } for (*cp=' '; *cp==' '; cp--) - *cp = 0; + *cp = '\0'; for (cp=lbuf; *cp; cp++) putchar(*cp); putchar('\n'); -- cgit v1.2.3