commit | 1a21ac8122de2ea1641fab740afa238a08a8bd3d | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Tue Apr 19 16:24:46 2022 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Apr 20 09:50:03 2022 +0200 |
tree | 2ac10b7b48ed4eb46a3ac5815e14b3e0a0d1e868 | |
parent | c6b05afc92550eea26fb38ac92cfac114f5e5581 [diff] |
shell: fix history optimization Commit f7c4fe677823 ("shell: optimize history storage a bit") forgot to distinguish between the newly allocated history item and the previous one, causing havoc on ring buffer wraparounds with excess padding. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>