Merge pull request #2722 from elfiesmelfie/increase_buffer
authorPavel Rochnyak <pavel2000@ngs.ru>
Wed, 28 Mar 2018 15:28:12 +0000 (22:28 +0700)
committerGitHub <noreply@github.com>
Wed, 28 Mar 2018 15:28:12 +0000 (22:28 +0700)
dpdk: increase buffer size for parsing lcores

src/utils_dpdk.c

index 30a1057..adc5530 100644 (file)
@@ -831,7 +831,7 @@ uint128_t str_to_uint128(const char *str, int len) {
       return lcore_mask;
   } else {
     char low_str[DATA_MAX_NAME_LEN];
-    char high_str[DATA_MAX_NAME_LEN];
+    char high_str[DATA_MAX_NAME_LEN * 2];
 
     memset(high_str, 0, sizeof(high_str));
     memset(low_str, 0, sizeof(low_str));