commit | 98f7467ac8ba53230d4ae6167aa5664a105323b3 | [log] [tgz] |
---|---|---|
author | Max <msuraev@sysmocom.de> | Mon Feb 05 12:57:06 2018 +0100 |
committer | Max <msuraev@sysmocom.de> | Mon Feb 05 12:57:06 2018 +0100 |
tree | 2beb1d76dce3353b57d31ae9303254ad6e22465d | |
parent | c2007855cebd240cf2868ce0d2dd90ba42ddfa8a [diff] |
Wrap osmo_strlcpy() calls Using following semantic patch: @@ expression A, B, C; @@ - osmo_strlcpy(A, B, sizeof(A)); + OSMO_STRLCPY_ARRAY(A, B); Which was applied using following command: spatch --dir src -I src --sp-file strlcpy.spatch --in-place --recursive-includes All the calls to osmo_strlcpy() which use destination buffer obtained via sizeof() were replaced with the corresponding wrapper macro. Change-Id: I67b482dedfa11237ac21894fc5930039e12434ab Related: OS#2864