]> Nishi Git Mirror - dataworks.git/commitdiff
how did that not segfault
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 17 May 2024 23:53:17 +0000 (23:53 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 17 May 2024 23:53:17 +0000 (23:53 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@15 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Client/main.c

index d7d4594dae3661fe5d84baa786543b23efe22289..af8d04c58a619473375abeb07258c7ecc1cc5732 100644 (file)
@@ -59,7 +59,7 @@ int main(int argc, char** argv) {
                        } else if(strcmp(argv[i], "--noclear") == 0) {
                                noclear = true;
                        } else {
-                               fprintf(stderr, "%s: %s: invalid option\n", argv[i]);
+                               fprintf(stderr, "%s: %s: invalid option\n", argv[0], argv[i]);
                                return 1;
                        }
                }