]> sourceware.org Git - lvm2.git/commit
libdm: revert incorrect path length size for sscanf
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 29 Aug 2014 09:52:45 +0000 (11:52 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 29 Aug 2014 11:10:18 +0000 (13:10 +0200)
commit93e9b3a1d142b3fcef3866599f8e395636a25ddb
tree50420978dc621346679c4f58d9446e463b9920f4
parent2faf416e0ed639b453c4ccf0d7f6f0217b644d5d
libdm: revert incorrect path length size for sscanf

Commit 94786a3bbf0b68883a2618c9bc25fc88e367f9f8 introduced
another bug - since sscanf needs extra 1 byte for \0.

Since there is no easy way to do a macro evaluation for (PATH_MAX-1)
and string concatation of this number to get resulting (%4095s) - let's
go with easiest path and restore extra byte for 0.

Other option would be to prepare sscanf parsing string in runtime.

But lets resolve it when we look at PATH_MAX handling later...
libdm/libdm-common.c
This page took 0.033973 seconds and 5 git commands to generate.