include/xbps.h: increase by one the char arrays to account for NUL bytes.
This commit is contained in:
parent
810c5d8de0
commit
e5c341c6d2
@ -48,7 +48,7 @@
|
|||||||
*
|
*
|
||||||
* This header documents the full API for the XBPS Library.
|
* This header documents the full API for the XBPS Library.
|
||||||
*/
|
*/
|
||||||
#define XBPS_API_VERSION "20140927"
|
#define XBPS_API_VERSION "20141005"
|
||||||
|
|
||||||
#ifndef XBPS_VERSION
|
#ifndef XBPS_VERSION
|
||||||
#define XBPS_VERSION "UNSET"
|
#define XBPS_VERSION "UNSET"
|
||||||
@ -590,28 +590,28 @@ struct xbps_handle {
|
|||||||
*
|
*
|
||||||
* Full path to the xbps configuration file.
|
* Full path to the xbps configuration file.
|
||||||
*/
|
*/
|
||||||
char conffile[XBPS_MAXPATH-1];
|
char conffile[XBPS_MAXPATH];
|
||||||
/**
|
/**
|
||||||
* @var rootdir
|
* @var rootdir
|
||||||
*
|
*
|
||||||
* Root directory for all operations in XBPS.
|
* Root directory for all operations in XBPS.
|
||||||
* If unset, defaults to '/'.
|
* If unset, defaults to '/'.
|
||||||
*/
|
*/
|
||||||
char rootdir[XBPS_MAXPATH-1];
|
char rootdir[XBPS_MAXPATH];
|
||||||
/**
|
/**
|
||||||
* @var cachedir
|
* @var cachedir
|
||||||
*
|
*
|
||||||
* Cache directory to store downloaded binary packages.
|
* Cache directory to store downloaded binary packages.
|
||||||
* If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir).
|
* If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir).
|
||||||
*/
|
*/
|
||||||
char cachedir[XBPS_MAXPATH-1];
|
char cachedir[XBPS_MAXPATH];
|
||||||
/**
|
/**
|
||||||
* @var metadir
|
* @var metadir
|
||||||
*
|
*
|
||||||
* Metadata directory for all operations in XBPS.
|
* Metadata directory for all operations in XBPS.
|
||||||
* If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir).
|
* If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir).
|
||||||
*/
|
*/
|
||||||
char metadir[XBPS_MAXPATH-1];
|
char metadir[XBPS_MAXPATH];
|
||||||
/**
|
/**
|
||||||
* @var native_arch
|
* @var native_arch
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user