Re: [dpdk-dev] [PATCH v3] cmdline: fix dynamic tokens parsing

2018-01-22 Thread Olivier Matz
On Sat, Jan 20, 2018 at 02:16:10AM +0800, Xueming Li wrote: > When using dynamic tokens, the result buffer contains pointers to some > location inside the result buffer. When the content of the temporary > buffer is copied in the final one, these pointers still point to the > temporary buffer. > >

[dpdk-dev] [PATCH v3] cmdline: fix dynamic tokens parsing

2018-01-19 Thread Xueming Li
When using dynamic tokens, the result buffer contains pointers to some location inside the result buffer. When the content of the temporary buffer is copied in the final one, these pointers still point to the temporary buffer. This works until the temporary buffer is kept intact, but the next comm