hide password for mac client

This commit is contained in:
amazingfate 2023-01-13 18:09:49 +08:00 committed by akallabeth
parent 275741cc75
commit a691b48bc0

View File

@ -10,5 +10,15 @@
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);
}