diff --git a/minix/commands/devmand/main.c b/minix/commands/devmand/main.c index 25cc0b8a8..14810fc64 100644 --- a/minix/commands/devmand/main.c +++ b/minix/commands/devmand/main.c @@ -544,7 +544,7 @@ static enum dev_type determine_type (char *path) return DEV_TYPE_UNKOWN; } - res = fscanf(fd , "%256s\n", buf); + res = fscanf(fd , "%255s\n", buf); fclose(fd); if (res != 1) {