gets(buf);
fgets(buf, sizeof buf, stdin);
char *stub_PromptPassword(MWContext *context,                          const char *msg){  nsINetSupport *ins;  char *result = nsnull;  if (nsnull != (ins = getNetSupport(context->modular_data))) {    nsAutoString str(msg);    nsAutoString res;    if (ins->PromptPassword(msg, res)) {      result = res.ToNewCString();    }    NS_RELEASE(ins);  }   /* No nsINetSupport interface... */  else {    char buf[256];    printf("%s\n", msg);    printf("%cPassword: ", '\007');    gets(buf);    if (PL_strlen(buf)) {      result = PL_strdup(buf);    }  }  return result;}