summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qresource.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-02-16 22:20:11 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-03-10 20:55:17 +0000
commitf030037d24ed08b3632264b0c6791b311d4b8603 (patch)
tree53e58ac0cd20b7af98ef1ac5bdd3b45bb53131d0 /src/corelib/io/qresource.cpp
parentc0a732f984f407f7613805ff04b8a6d46c12f754 (diff)
Implement qstrncpy() in terms of std::strncat()
This has the advantage that we're only copying strlen(src) characters, like in the strncpy_s() case, not fill all of [dst,len) with NULs, like strncpy() is wont to do. [ChangeLog][Important Behavior Changes][qstrncpy()] On non-Windows platforms, no longer writes to all bytes of the target buffer, but stops after the terminating NUL. This was already the behavior on Windows. Change-Id: Ic86206f418affae6d0d88dfe79537eeb833a7daa Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qresource.cpp')
0 files changed, 0 insertions, 0 deletions