Re:If macOS High Sierra shows your password instead of the p...
by Someone on Thursday October 05, 2017 @04:45PM
(#15412453)
I agree it shouldn’t happen, but in this case, the programmer presumably made (more or less) the same mistake, writing out a variable called password unencrypted, possibly after copying it to a variable or structure field called passwordhint.
Thinking of that, this may be an example of a copy-paste bug (https://www.viva64.com/en/a/0068/), where the programmer wrote
instead of (Hopefully using the safer strncpy, but that’s orthogonal to this argument)