Skip to content
Snippets Groups Projects
Commit edcf5622 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Truncate trailing whitespace before computing name CRCs

Some BBS packages tack on trailing whitespace on names, e.g.
https://github.com/wwivbbs/wwiv/issues/1607
parent 5659bc49
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4334 failed
...@@ -406,6 +406,7 @@ uint16_t smb_name_crc(const char* name) ...@@ -406,6 +406,7 @@ uint16_t smb_name_crc(const char* name)
return(0xffff); return(0xffff);
strlwr(str); strlwr(str);
truncsp(str);
crc=crc16(str,0 /* auto-length */); crc=crc16(str,0 /* auto-length */);
free(str); free(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment