1
0
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:
Joe Thornber 2001-12-17 14:05:43 +00:00
parent 548a351b06
commit b897fe6700

View File

@ -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;