mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
o Use lvm_snprintf
This commit is contained in:
parent
548a351b06
commit
b897fe6700
@ -31,6 +31,7 @@
|
||||
|
||||
#include "stub.h"
|
||||
#include "vgcache.h"
|
||||
#include "lvm-string.h"
|
||||
|
||||
#ifdef READLINE_SUPPORT
|
||||
#include <readline/readline.h>
|
||||
@ -720,8 +721,8 @@ static struct dev_filter *filter_setup(struct config_file *cf)
|
||||
if (!(f3 = filter_components_setup(cmd->cf)))
|
||||
return 0;
|
||||
|
||||
if (snprintf(cache_file, sizeof(cache_file),
|
||||
"%s/.cache", _system_dir) < 0) {
|
||||
if (lvm_snprintf(cache_file, sizeof(cache_file),
|
||||
"%s/.cache", _system_dir) < 0) {
|
||||
log_err("Persistent cache filename too long ('%s/.cache').",
|
||||
_system_dir);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user