From: Christian Brauner Date: Sat, 25 Aug 2018 10:04:17 +0000 (+0200) Subject: caps: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ X-Git-Tag: lxc-3.1.0~127^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69623bfc3d0f0bee5097cc044c0a818b97141d27;p=thirdparty%2Flxc.git caps: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ Signed-off-by: Christian Brauner --- diff --git a/src/lxc/caps.c b/src/lxc/caps.c index acc5788ae..1c8c03bd6 100644 --- a/src/lxc/caps.c +++ b/src/lxc/caps.c @@ -321,10 +321,10 @@ static long int _real_caps_last_cap(void) if (fd >= 0) { ssize_t n; char *ptr; - char buf[LXC_NUMSTRLEN64 + 1]; + char buf[INTTYPE_TO_STRLEN(int)]; again: - n = read(fd, buf, LXC_NUMSTRLEN64); + n = read(fd, buf, INTTYPE_TO_STRLEN(int)); if (n < 0 && errno == EINTR) { goto again; } else if (n >= 0) {