$NetBSD: patch-ab,v 1.1.1.1 2001/03/14 16:03:11 skrll Exp $ --- kcontrol/info/info_netbsd.cpp.orig Tue Jun 6 15:29:57 2000 +++ kcontrol/info/info_netbsd.cpp @@ -181,14 +181,15 @@ } pos = s.find(" irq "); - irqnum = (pos < 0) ? 0 : atoi(&(((const char *)s)[pos+5])); + irqnum = (pos < 0) ? 0 : atoi(&(s.ascii()[pos+5])); + if (irqnum) { - s.sprintf("%02d%s", irqnum, (const char *)s); + s.sprintf("%02d%s", irqnum, s.ascii()); } else { - s.sprintf("??%s", (const char *)s); + s.sprintf("??%s", s.ascii()); } - strlist->inSort(s); + strlist->inSort(s.ascii()); } bool GetInfo_IRQ (QListView *lBox) @@ -284,7 +285,7 @@ QListViewItem *olditem = 0; while ((s = t->readLine()) != "") { - orig_line = line = strdup(s); + orig_line = line = strdup(s.ascii()); device = strsep(&line, " ");