aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-07-03 06:28:04 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-07-03 06:28:04 +0000
commit16f33a4885b66316c9b58afd72fd9bddda29e82e (patch)
tree4c3a46953ee6e1c29d700f4bc26dd453944525cf /lib
parent93c163325e61ab70d00079218a3c084fe5e246eb (diff)
downloadsrc-16f33a4885b66316c9b58afd72fd9bddda29e82e.tar.gz
src-16f33a4885b66316c9b58afd72fd9bddda29e82e.zip
Fix off-by-one error.
PR: misc/40104 Submitted by: Neal Fachan <neal@isilon.com> MFC after: 3 days
Notes
Notes: svn path=/head/; revision=99331
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/strerror.c b/lib/libc/string/strerror.c
index 55840f1bae4c..32e35aa9bed7 100644
--- a/lib/libc/string/strerror.c
+++ b/lib/libc/string/strerror.c
@@ -96,7 +96,7 @@ strerror(num)
* supplied buffer, inverting the number string.
*/
strcpy(ebuf, unknown_prefix);
- for (p = ebuf + sizeof unknown_prefix - 1; t >= tmp; )
+ for (p = ebuf + sizeof unknown_prefix - 1; t > tmp; )
*p++ = *--t;
*p = '\0';
return (ebuf);