Skip to content
Commit 0238507b authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: core: document fw_csr_string's truncation of long strings



fw_csr_string() truncates and terminates target strings like strlcpy()
does.  Unlike strlcpy(), it returns the target strlen, not the source
strlen, hence users of fw_csr_string() are unable to detect truncation.

Point this behavior out in the kerneldoc comment.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
parent 51b04d59
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment