diff --git a/src/swap.c b/src/swap.c
index b3aa4f7dbc4bb3c7b5e8cacc7432b755215c0549..fb50cf38bae32639361d3e4d1ae1aaa4a0348452 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
/* #endif defined(VM_SWAPUSAGE) */
#elif HAVE_LIBKVM_GETSWAPINFO
- char errbuf[1024];
+ char errbuf[_POSIX2_LINE_MAX];
if (kvm_obj != NULL)
{
if (kvm_obj == NULL)
{
- ERROR ("swap plugin: kvm_open failed, %s", errbuf);
+ ERROR ("swap plugin: kvm_openfiles failed, %s", errbuf);
return (-1);
}
/* #endif HAVE_LIBKVM_GETSWAPINFO */