mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 00:11:16 +01:00
Merge pull request #20722 from maribu/cpu/native/fix-gcc-14-1
cpu/native: fix compilation with GCC 14.1
This commit is contained in:
commit
5668de68e0
@ -480,7 +480,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e
|
||||
const size_t argc_max = 32;
|
||||
size_t cmdlen = 0;
|
||||
char *cmdline = malloc(bufsize);
|
||||
argv = calloc(sizeof(char *), argc_max);
|
||||
argv = calloc(argc_max, sizeof(char *));
|
||||
argc = 0;
|
||||
envp = NULL;
|
||||
expect(cmdline != NULL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user