]> git.ipfire.org Git - thirdparty/u-boot.git/commit
strim: Sync up with Linux version
authorSimon Glass <sjg@chromium.org>
Thu, 1 May 2025 11:10:08 +0000 (05:10 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 16 May 2025 04:21:36 +0000 (06:21 +0200)
commitaea684a0c31cb2b0442eab965c2b08ed8d1abfd0
tree61ca10f06bdf9de0227508d469f4249034285a2d
parent4c26de2eea6bcf5f27b13da0372d27d767cd38e3
strim: Sync up with Linux version

Linux changed the behaviour of strim() so that a string with only spaces
reduces places the terminator at the start of the string, rather than
returning a pointer to the end of the string.

Bring in this version, from Linux v6.14

Add a comment about the new behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/linux_string.c