Lines Matching refs:newname
1466 char newname[80]; in SV_ExtractFromUserinfo() local
1473 strncpy(newname, val, sizeof(newname) - 1); in SV_ExtractFromUserinfo()
1474 newname[sizeof(newname) - 1] = 0; in SV_ExtractFromUserinfo()
1476 for (p = newname; (*p == ' ' || *p == '\r' || *p == '\n') && *p; p++) in SV_ExtractFromUserinfo()
1479 if (p != newname && !*p) { in SV_ExtractFromUserinfo()
1481 strcpy(newname, "unnamed"); in SV_ExtractFromUserinfo()
1482 p = newname; in SV_ExtractFromUserinfo()
1485 if (p != newname && *p) { in SV_ExtractFromUserinfo()
1486 for (q = newname; *p; *q++ = *p++) in SV_ExtractFromUserinfo()
1490 …for (p = newname + strlen(newname) - 1; p != newname && (*p == ' ' || *p == '\r' || *p == '\n') ; … in SV_ExtractFromUserinfo()
1494 if (strcmp(val, newname)) { in SV_ExtractFromUserinfo()
1495 Info_SetValueForKey (cl->userinfo, "name", newname, MAX_INFO_STRING); in SV_ExtractFromUserinfo()
1523 sprintf(newname, "(%d)%-.40s", dupc++, p); in SV_ExtractFromUserinfo()
1524 Info_SetValueForKey (cl->userinfo, "name", newname, MAX_INFO_STRING); in SV_ExtractFromUserinfo()