mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
[S390] early: limit savesys cmd string handling
Use snprintf() here as well so we won't have to deal with this again. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
69ac43b05e
commit
894e491e42
@ -143,8 +143,9 @@ static noinline __init void create_kernel_nss(void)
|
||||
snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen,
|
||||
" EW MINSIZE=%.7iK PARMREGS=0-13", min_size);
|
||||
defsys_cmd[DEFSYS_CMD_SIZE - 1] = '\0';
|
||||
sprintf(savesys_cmd, "SAVESYS %s \n IPL %s",
|
||||
kernel_nss_name, kernel_nss_name);
|
||||
snprintf(savesys_cmd, SAVESYS_CMD_SIZE, "SAVESYS %s \n IPL %s",
|
||||
kernel_nss_name, kernel_nss_name);
|
||||
savesys_cmd[SAVESYS_CMD_SIZE - 1] = '\0';
|
||||
|
||||
__cpcmd(defsys_cmd, NULL, 0, &response);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user