diff options
author | Jim Meyering <jim@meyering.net> | 2001-03-12 21:16:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-03-12 21:16:05 +0000 |
commit | c9fc879e8994ede1857e695a3d9fdf0e81140f73 (patch) | |
tree | 001aa3be81463892fad405cc7e629c84d3bcce27 /src | |
parent | 7cb4c9284d9a629cfcc868fe05bc971eaa0f4fc7 (diff) | |
download | coreutils-c9fc879e8994ede1857e695a3d9fdf0e81140f73.tar.xz |
`fmt --prefix=S' would not work properly for any string S containing
a byte with the high bit set.
(prefix): Declare to be of type unsigned char, not `char'.
(get_prefix): Likewise for local, `p'.
Diffstat (limited to 'src')
-rw-r--r-- | src/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* GNU fmt -- simple text formatter. - Copyright (C) 1994-2000 Free Software Foundation, Inc. + Copyright (C) 1994-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -185,7 +185,7 @@ static bool split; static bool uniform; /* Prefix minus leading and trailing spaces (default ""). */ -static const char *prefix; +static const unsigned char *prefix; /* User-supplied maximum line width (default WIDTH). The only output lines @@ -652,7 +652,7 @@ static int get_prefix (FILE *f) { register int c; - register const char *p; + register const unsigned char *p; in_column = 0; c = get_space (f, getc (f)); |