Module Name: src
Committed By: uwe
Date: Fri Aug 11 16:06:10 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): don't use \*[Ge] for >= - it's wrong for source code
In the PostScript output it produces the single mathematical "greater
or equal" symbol, not the ">=".
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/string/strlcpy.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/string/strlcpy.3
diff -u src/lib/libc/string/strlcpy.3:1.16 src/lib/libc/string/strlcpy.3:1.17
--- src/lib/libc/string/strlcpy.3:1.16 Fri Aug 11 15:36:17 2023
+++ src/lib/libc/string/strlcpy.3 Fri Aug 11 16:06:10 2023
@@ -1,4 +1,4 @@
-.\" $NetBSD: strlcpy.3,v 1.16 2023/08/11 15:36:17 riastradh Exp $
+.\" $NetBSD: strlcpy.3,v 1.17 2023/08/11 16:06:10 uwe Exp $
.\" from OpenBSD: strlcpy.3,v 1.11 2000/11/16 23:27:41 angelos Exp
.\"
.\" Copyright (c) 1998, 2000 Todd C. Miller <[email protected]>
@@ -226,9 +226,9 @@ size_t n;
\&...
n = strlcpy(pname, dir, sizeof(pname));
-if (n \*[Ge] sizeof(pname))
+if (n >= sizeof(pname))
goto toolong;
-if (strlcpy(pname + n, file, sizeof(pname) - n) \*[Ge] sizeof(pname) - n)
+if (strlcpy(pname + n, file, sizeof(pname) - n) >= sizeof(pname) - n)
goto toolong;
.Ed
.Pp