Signed/unsigned char mismatch in check.c causes false positives

in bad_name() and can result in data loss, see Debian bug #538758.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Piotr Kaczuba 2009-07-26 22:21:25 +02:00 committed by Daniel Baumann
parent d42a27373a
commit 28ff9d967c

View File

@ -254,7 +254,7 @@ static int bad_name(DOS_FILE *file)
{
int i, spc, suspicious = 0;
char *bad_chars = atari_format ? "*?\\/:" : "*?<>|\"\\/:";
char *name = file->dir_ent.name;
unsigned char *name = file->dir_ent.name;
/* Do not complain about (and auto-correct) the extended attribute files
* of OS/2. */