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){