From e5c341c6d2856efa89adeb6b18c008cdaf20c837 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 07:53:10 +0200 Subject: [PATCH] include/xbps.h: increase by one the char arrays to account for NUL bytes. --- include/xbps.h.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/xbps.h.in b/include/xbps.h.in index d2c3390a..c58f047d 100644 --- a/include/xbps.h.in +++ b/include/xbps.h.in @@ -48,7 +48,7 @@ * * This header documents the full API for the XBPS Library. */ -#define XBPS_API_VERSION "20140927" +#define XBPS_API_VERSION "20141005" #ifndef XBPS_VERSION #define XBPS_VERSION "UNSET" @@ -590,28 +590,28 @@ struct xbps_handle { * * Full path to the xbps configuration file. */ - char conffile[XBPS_MAXPATH-1]; + char conffile[XBPS_MAXPATH]; /** * @var rootdir * * Root directory for all operations in XBPS. * If unset, defaults to '/'. */ - char rootdir[XBPS_MAXPATH-1]; + char rootdir[XBPS_MAXPATH]; /** * @var cachedir * * Cache directory to store downloaded binary packages. * If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir). */ - char cachedir[XBPS_MAXPATH-1]; + char cachedir[XBPS_MAXPATH]; /** * @var metadir * * Metadata directory for all operations in XBPS. * If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir). */ - char metadir[XBPS_MAXPATH-1]; + char metadir[XBPS_MAXPATH]; /** * @var native_arch *