Merge 4a9ae83d648447b109d705e04934d3426de01062 into 2dafe755097057a4faf5e240f0abc98b9b4cdcb8

This commit is contained in:
Celine Lee 2025-03-18 14:06:44 +01:00 committed by GitHub
commit 6426317c7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ int main(int argc, char **argv)
return 1; return 1;
} }
if (argv[1][0] == '-' && argv[1][1] == '6') if (strlen(argv[1]) > 1 && argv[1][0] == '-' && argv[1][1] == '6')
{ {
struct utsname buf; struct utsname buf;
if (0 == uname(&buf)) if (0 == uname(&buf))