Differences From Artifact [cdb5f38d7a]:
- File unix/ux_x11.c — part of check-in [34e60855a6] at 2003-01-11 03:46:50 on branch trunk — Hack around an oddity in X display names and xauth. (user: simon size: 3304)
To Artifact [7eb225a40b]:
- File unix/ux_x11.c — part of check-in [48c3c19745] at 2003-03-29 10:14:26 on branch trunk — Introduced wrapper macros snew(), snewn() and sresize() for the malloc functions, which automatically cast to the same type they're allocating the size of. Should prevent any future errors involving mallocing the size of the wrong structure type, and will also make life easier if we ever need to turn the PuTTY core code from real C into C++-friendly C. I haven't touched the Mac frontend in this checkin because I couldn't compile or test it. (user: simon size: 3308)
| ︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + |
command = dupprintf("xauth list %s 2>/dev/null", display);
fp = popen(command, "r");
sfree(command);
if (!fp)
return; /* assume no auth */
|
| ︙ |