Re: [PATCH 07/10] setexpr: Correct dropping of final unmatched string

2020-12-02 Thread Tom Rini
On Sun, Nov 01, 2020 at 02:15:41PM -0700, Simon Glass wrote: > At present the 'nlen' variable increases with each loop. If the previous > loop had back references, then subsequent loops without back references > use the wrong value of nlen. The value is larger, meaning that the string > terminator

[PATCH 07/10] setexpr: Correct dropping of final unmatched string

2020-11-01 Thread Simon Glass
At present the 'nlen' variable increases with each loop. If the previous loop had back references, then subsequent loops without back references use the wrong value of nlen. The value is larger, meaning that the string terminator from nbuf is copied along to the main buffer, thus terminating the st