[comp.windows.x] xhost typo, or did I do it?

dale@boing.UUCP (Dale Luck) (09/22/88)

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.