caps: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/

parent 1e7d9877
...@@ -321,10 +321,10 @@ static long int _real_caps_last_cap(void) ...@@ -321,10 +321,10 @@ static long int _real_caps_last_cap(void)
if (fd >= 0) { if (fd >= 0) {
ssize_t n; ssize_t n;
char *ptr; char *ptr;
char buf[LXC_NUMSTRLEN64 + 1]; char buf[INTTYPE_TO_STRLEN(int)];
again: again:
n = read(fd, buf, LXC_NUMSTRLEN64); n = read(fd, buf, INTTYPE_TO_STRLEN(int));
if (n < 0 && errno == EINTR) { if (n < 0 && errno == EINTR) {
goto again; goto again;
} else if (n >= 0) { } else if (n >= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment