1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #14757 from benpicco/socket_zep_reboot

socket_zep: fix reboot
This commit is contained in:
Martine Lenders 2020-08-26 19:41:16 +02:00 committed by GitHub
commit 3d457b76cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -388,6 +388,9 @@ static void _zep_params_setup(char *zep_str, int zep)
{
char *save_ptr, *first_ep, *second_ep;
/* reboot uses execve() so we need to preserve argv */
zep_str = strdup(zep_str);
if ((first_ep = strtok_r(zep_str, ",", &save_ptr)) == NULL) {
usage_exit(EXIT_FAILURE);
}