hide password for mac client
int main(int argc, const char *argv[])
{
+ const char *ctemp;
+ for (int i = 0; i < argc; i++)
+ {
+ ctemp = argv[i];
+ if (memcmp(ctemp, "/p:", 3) == 0 || memcmp(ctemp, "-p:", 3) == 0)
+ {
+ memset((char *)ctemp + 3, '*', strlen(ctemp) - 3);
+ }
+ }
+
return NSApplicationMain(argc, argv);
}
