rem: memset(tmn->name, '\0', 4);
add: if(len >= 3 && !strncmp(end - 2, "%d", 2)) { len -= 2; tmn->devfs_type = 1; }
context: static void load_drivers(void){  char buf[10000];  char *p;  int fd;  int bytes;  fd = open("/proc/tty/drivers",O_RDONLY);  if(fd == -1) goto fail;  bytes = read(fd, buf, 9999);  if(bytes == -1) goto fail;  buf[bytes] = '\0';  p = buf;  while(( p = strstr(p, " /dev/tty") )){    tty_map_node *tmn;    int len;    p += 9;    len = strspn(p, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");    if(!len) continue;    if(len>3) continue;    if((len=1) && (*p=='S')) continue;    tmn = malloc(sizeof(tty_map_node));    tmn->next = tty_map;    tty_map = tmn;    memset(tmn->name, '\0', 4);    strncpy(tmn->name, p, len);    p += len;    tmn->major_number = atoi(p);  }fail:  if(fd != -1) close(fd);  if(!tty_map) tty_map = (tty_map_node *)-1;}