Re: [dpdk-dev] [PATCH v2] eal: save error in string copy

2021-07-05 Thread David Marchand
On Sun, Jun 13, 2021 at 10:25 AM Xueming Li wrote: > > From: Thomas Monjalon > > The string copy api rte_strscpy() doesn't set rte_errno during failures, > instead it just return negative error number. > > Sets rte_errrno if the destination buffer is too small. > > Signed-off-by: Thomas Monjalon

[dpdk-dev] [PATCH v2] eal: save error in string copy

2021-06-13 Thread Xueming Li
From: Thomas Monjalon The string copy api rte_strscpy() doesn't set rte_errno during failures, instead it just return negative error number. Sets rte_errrno if the destination buffer is too small. Signed-off-by: Thomas Monjalon Signed-off-by: Xueming Li --- lib/eal/common/eal_common_string_f