diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:28:15 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:28:15 +0000 |
commit | e3dbc2c33e33e219276bd2c50c7648400c48438b (patch) | |
tree | d8c6f486ac5dbec22872ce76d3e3fee44a4a9804 /src/XpNotifyPdm.c | |
parent | 8575b69d8eb59ede70af9f4d82baee328b0571d8 (diff) | |
download | xorg-lib-libXp-e3dbc2c33e33e219276bd2c50c7648400c48438b.tar.gz |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16
Diffstat (limited to 'src/XpNotifyPdm.c')
-rw-r--r-- | src/XpNotifyPdm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/XpNotifyPdm.c b/src/XpNotifyPdm.c index a785c20..48ab2bb 100644 --- a/src/XpNotifyPdm.c +++ b/src/XpNotifyPdm.c @@ -41,7 +41,7 @@ ** ****************************************************************************** *****************************************************************************/ -/* $XFree86: xc/lib/Xp/XpNotifyPdm.c,v 1.6 2002/10/16 00:37:32 dawes Exp $ */ +/* $XFree86: xc/lib/Xp/XpNotifyPdm.c,v 1.7 2003/07/20 16:12:14 tsi Exp $ */ #include <X11/extensions/Print.h> #include <X11/Xlibint.h> @@ -131,16 +131,18 @@ _XpGetSelectionServer ( /* * remove ".scr" portion from "host:disp.scr" strings. + * Use strrchr to find : separating host from display + * to allow IPv6 numeric addresses with embedded colons. */ - if (( tstrptr = strchr( tstr1, ':' ) )) + if (( tstrptr = strrchr( tstr1, ':' ) )) if (( tstrptr = strchr( tstrptr, '.' ) )) *tstrptr = '\0'; - if (( tstrptr = strchr( tstr2, ':' ) )) + if (( tstrptr = strrchr( tstr2, ':' ) )) if (( tstrptr = strchr( tstrptr, '.' ) )) *tstrptr = '\0'; - if (( tstrptr = strchr( tstr3, ':' ) )) + if (( tstrptr = strrchr( tstr3, ':' ) )) if (( tstrptr = strchr( tstrptr, '.' ) )) *tstrptr = '\0'; |