mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fix strtrim to correctly trim strings containing only whitespace
This commit is contained in:
parent
760e0660c8
commit
8de159289a
1 changed files with 1 additions and 1 deletions
|
|
@ -1183,7 +1183,7 @@ char* strtrim(char* str)
|
|||
|
||||
end[0] = 0;
|
||||
|
||||
if (begin != end)
|
||||
if (begin != str)
|
||||
memmove(str, begin, end - begin + 1);
|
||||
|
||||
return str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue