Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!think!ames!sdcsvax!ucbvax!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: V11 xwd stored bogus name Message-ID: <871012163917.5.RWS@KILLINGTON.LCS.MIT.EDU> Date: Mon, 12-Oct-87 16:39:00 EDT Article-I.D.: KILLINGT.871012163917.5.RWS Posted: Mon Oct 12 16:39:00 1987 Date-Received: Wed, 14-Oct-87 02:29:15 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 68 VERSION: X11 release 1 SYNOPSIS: xwd stored bogosity for the window name DESCRIPTION: xwd stored bogosity for the window name REPEAT-BY: look at the name produced in xpr output or an xwud window FIX: in clients/xwd/xwd.c *** /tmp/,RCSt1024541 Mon Oct 12 16:30:41 1987 --- xwd.c Fri Oct 9 14:37:10 1987 *************** *** 37,43 **** */ #ifndef lint ! static char *rcsid_xwd_c = "$Header: xwd.c,v 1.28 87/09/11 16:57:09 rws Exp $"; #endif /*% --- 37,43 ---- */ #ifndef lint ! static char *rcsid_xwd_c = "$Header: xwd.c,v 1.29 87/10/09 14:36:37 newman Exp $"; #endif /*% *************** *** 140,146 **** int win_name_size; int header_size; int ncolors, i; ! char win_name[100]; XWindowAttributes win_info; XImage *image; --- 140,146 ---- int win_name_size; int header_size; int ncolors, i; ! char *win_name; XWindowAttributes win_info; XImage *image; *************** *** 159,167 **** if(!XGetWindowAttributes(dpy, window, &win_info)) Fatal_Error("Can't get target window attributes."); ! XFetchName(dpy, window, win_name); ! if (!win_name[0]) ! strcpy(win_name, "xwdump"); /* sizeof(char) is included for the null string terminator. */ win_name_size = strlen(win_name) + sizeof(char); --- 159,167 ---- if(!XGetWindowAttributes(dpy, window, &win_info)) Fatal_Error("Can't get target window attributes."); ! XFetchName(dpy, window, &win_name); ! if (!win_name || !win_name[0]) ! win_name = "xwdump"; /* sizeof(char) is included for the null string terminator. */ win_name_size = strlen(win_name) + sizeof(char);