mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
f3a9b524f1
TOKEN_SOURCE::SourceString is an 8 char non-null-terminated string. Copy it as such. Fixes GCC 8 warning: dll/win32/advapi32/misc/logon.c:638:5: error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation] strncpy(TokenSource.SourceName, "Advapi ", sizeof(TokenSource.SourceName)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
---|---|---|
.. | ||
dllmain.c | ||
efs.c | ||
evntrace.c | ||
hwprofiles.c | ||
logon.c | ||
msi.c | ||
shutdown.c | ||
sysfunc.c | ||
unicode.c |