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