From 7346c6f93ecd038290cfa00c512a0f1694959cef Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 22 Feb 2002 05:54:00 +0000 Subject: [PATCH] * man2hlp.c (string_len): Don't exclude characters with codes above 128 from the string length. --- src/ChangeLog | 5 +++++ src/man2hlp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c113c14f3..9848f2787 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-02-22 Pavel Roskin + + * man2hlp.c (string_len): Don't exclude characters with codes + above 128 from the string length. + 2002-02-21 Andrew V. Samoilov * ext.c (exec_extension): Use "#! /bin/sh". diff --git a/src/man2hlp.c b/src/man2hlp.c index 22010e2d8..b9a32d693 100644 --- a/src/man2hlp.c +++ b/src/man2hlp.c @@ -75,7 +75,7 @@ static int string_len (char *buffer) len ++; } /* Don't add control characters to the length */ - if (c < 32) + if (c >= 0 && c < 32) continue; /* Attempt to handle backslash quoting */ if (c == '\\' && !backslash_flag){