On 18/06/18(Mon) 20:57, David Bern wrote: > I take back my previous answer to this question: > > Are you sure the name always contain an underscore? Can't it be > > "Button:Button42" ? > > In my previous response I had only discovered three cases of usage -1. > I took another look and discovered that there indeed is a scenario as you > mention other then just "_%d". > > In my efforts to resolve that scenario, I discovered a simple solution I > had not thought about earlier. > > With the help of pages[k].page_contents[j].name I'm able to parse current > and > future versions " * %99[^\n]" lines the usb_hid_usages.
I don't understand what you're talking about. Can you give example of the 3 scenarios you're talking about. > This patch is back to using sscanf again & I still haven't been able to > figure > out what could be unsafe about this use of it. Note that your diff doesn't apply. You have tab vs spaces issues. There's also a similar fix in NetBSD's tree, did you look at it?