Skip to content

Commit 175cdf1

Browse files
authored
Merge pull request #24 from tenderlove/fix-segv
2 parents 300b684 + b5a8975 commit 175cdf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

m1ddc.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ int main(int argc, char** argv) {
7979

8080
if ( !(strcmp(argv[s+1], "display")) ) {
8181

82+
if (argc == 4) {
83+
returnText = @"No command specified. Please use `list` to list displays, or specify a display number to control\n";
84+
goto cya;
85+
}
86+
8287
io_iterator_t iter;
8388
io_service_t service = 0;
8489
io_registry_entry_t root = IORegistryGetRootEntry(kIOMainPortDefault);

0 commit comments

Comments
 (0)