Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.windows.x Subject: xhost typo, or did I do it? Message-ID: <392@boing.UUCP> Date: 21 Sep 88 17:37:14 GMT Reply-To: dale@boing.UUCP (Dale Luck) Distribution: na Organization: Boing, Milpitas, Ca. Lines: 23 While working on xhost. I noticed this piece of code: if ((dpy = XOpenDisplay(NULL)) == NULL) { fprintf(stderr, "%s: Can't open display /* '%s' */\n", argv[0]/*, XDisplayName("\0")*/); exit(1); } Now either I had previously edited this file before knowing what I was doing or the released xhost source is non-standard. Looks to me someone tried to comment out the characters: '%s', however this is in a string so the comment would have no affect, it would still try to use %s as a format, but the XDisplayName is also commented out so fprintf will try to print out two strings when only one was passed in. -- Dale Luck Boing, Inc. {cbmvax|oliveb|pyramid}|!amiga!boing!dale Although I do contract work for Amiga-LosGatos, my opinions probably don't represent those of Commodore or its management or its engineers, but I think the world would be a better place if they did.