Better to use unsigned char when isspace() is involved.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@304 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2005-02-03 08:22:02 +00:00
parent fb363b4d2e
commit 554a37183c
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $P4: //depot/projects/openpam/lib/openpam_readline.c#2 $
* $P4: //depot/projects/openpam/lib/openpam_readline.c#3 $
*/
#include <ctype.h>
@ -52,7 +52,7 @@
char *
openpam_readline(FILE *f, int *lineno, size_t *lenp)
{
char *line;
unsigned char *line;
size_t len, size;
int ch;
@ -63,7 +63,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp)
#define line_putch(ch) do { \
if (len >= size - 1) { \
char *tmp = realloc(line, size *= 2); \
unsigned char *tmp = realloc(line, size *= 2); \
if (tmp == NULL) \
goto fail; \
line = tmp; \