summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-11-05 23:35:16 +0000
committerwosch <wosch@FreeBSD.org>1996-11-05 23:35:16 +0000
commitd459440903bc0cb60011479f4bd76f157070df24 (patch)
tree66c93929452c7095e5e81ea452c26c9fcf7725e8 /gnu/usr.bin
parentbabb356b2cf7a9e609145e39595812db23b6f26c (diff)
downloadFreeBSD-src-d459440903bc0cb60011479f4bd76f157070df24.zip
FreeBSD-src-d459440903bc0cb60011479f4bd76f157070df24.tar.gz
Not hang in the downcase routine.
Submitted by: Trevor Blackwell tlb@viaweb.com 2.1.6/2.2 Candidate
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/man/lib/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/lib/util.c b/gnu/usr.bin/man/lib/util.c
index 14a6cb9..6db023b 100644
--- a/gnu/usr.bin/man/lib/util.c
+++ b/gnu/usr.bin/man/lib/util.c
@@ -59,7 +59,8 @@ downcase (s)
while ((c = *s) != '\0')
{
if (isalpha (c))
- *s++ = tolower (c);
+ *s = tolower (c);
+ s++;
}
}
OpenPOWER on IntegriCloud