Skip to content

vkgears: make argument parsing more robust

Erik Faye-Lund requested to merge kusma/mesa-demos:vkgears-argparse into main

atoi has a few issues; let's use strtoul instead. While we're at it, let's also check for negative results where that's unsafe.

This is a simpler version of what's proposed in !178 (closed), which also aligns better with what we're doing in glxgears.

Merge request reports

Loading