[CRIU] [RFC PATCHv2 21/32] zdtm: static/write_read02: support longer pathes passed as --filename
Ivan Shapovalov
intelfx at intelfx.name
Sat Mar 12 00:42:20 PST 2016
Signed-off-by: Ivan Shapovalov <intelfx at intelfx.name>
---
test/zdtm/static/write_read02.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/zdtm/static/write_read02.c b/test/zdtm/static/write_read02.c
index 8d8ffae..c33a102 100644
--- a/test/zdtm/static/write_read02.c
+++ b/test/zdtm/static/write_read02.c
@@ -2,6 +2,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+#include <limits.h>
#include "zdtmtst.h"
@@ -17,7 +18,7 @@ int main(int argc, char ** argv)
int len, full_len;
uint32_t crc;
uint8_t buf[1000000];
- char str[32];
+ char str[PATH_MAX];
test_init(argc, argv);
--
2.7.2
More information about the CRIU
mailing list