*** w_open.c.org Mon Apr 17 09:35:21 1995 --- w_open.c Mon Apr 17 09:36:29 1995 *************** *** 169,174 **** --- 169,175 ---- static XSizeHints xsizehints; static int i; static char stmp[128]; + char *p; d2 = XOpenDisplay(str); black2 = BlackPixel(d2,0); *************** *** 196,202 **** --- 197,209 ---- XSetWMNormalHints(d2,w2,&xsizehints); strcpy(w2_name,"VS OTHELLO From "); + #if 0 strcat(w2_name,getlogin()); + #else + if ((p = getlogin()) == NULL) + p = getpwuid(getuid()); + strcat(w2_name, p); + #endif gethostname(stmp,128); if(strlen(stmp) > 0){ strcat(w2_name,"@");