1
0
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:
Dylan Laduranty 2024-06-04 14:30:53 +00:00 committed by GitHub
commit 5668de68e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);