]> git.alsa-project.org Git - alsa-lib.git/commit
fix parsing of non-decimal integers in configuration files
authorClemens Ladisch <clemens@ladisch.de>
Mon, 18 Sep 2006 15:57:58 +0000 (17:57 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 18 Sep 2006 15:57:58 +0000 (17:57 +0200)
commit0211bc3b6875af9c076517070f0466d257adce51
tree3809a899d0e8fc2d89e0cf1ce0e7e805f018bd22
parenta7bc1dd80c33400081bd113b8b8e1e989612ebe0
fix parsing of non-decimal integers in configuration files

safe_strtoll() now accepts numbers in any base. It formerly assumed that
its input was a decimal number, which had the consequence that
hexadecimal or octal numbers would be parsed as strings when occurring
outside of parameter lists.

This obsoletes some workarounds in the file permission parsing code that
relied on this bug.
src/conf.c
src/pcm/pcm_direct.c
src/pcm/pcm_file.c