summaryrefslogtreecommitdiffstats
path: root/man7/string_copying.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/string_copying.7')
-rw-r--r--man7/string_copying.74
1 files changed, 2 insertions, 2 deletions
diff --git a/man7/string_copying.7 b/man7/string_copying.7
index daf9723e8..3eb345d43 100644
--- a/man7/string_copying.7
+++ b/man7/string_copying.7
@@ -607,8 +607,8 @@ p = buf;
p = stpecpy(p, end, "Hello ");
p = stpecpy(p, end, "world");
p = stpecpy(p, end, "!");
-if (p == end) {
- p\-\-;
+if (p == NULL) {
+ len = sizeof(buf) \- 1;
goto toolong;
}
len = p \- buf;