Parent: aeb998cac207ca2134618c5567fb2d5503d94245
Author: Johan Hedberg <johan.hedberg@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-07-11 13:33:06
Tree: 62e4d15f111265c09324fbed8322d7a336c7291b
core: Fix filename contruction with PATH_MAX and snprintf PATH_MAX contains the terminating null, so there's no need to +1 to it. Also, snprintf guarantees a null-terminated string, so there's no need to explicitly set a terminating character after the call.
Diffstat
| M | src/adapter.c | | | 99 | ++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | src/device.c | | | 32 | ++++++++++- - - - - - - - - - - - - - - - - - - - - - |
| M | src/storage.c | | | 8 | ++++- - - - |
3 files changed, 36 insertions(+), 103 deletions(-)