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:
commit
3d457b76cc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user