changeset 8269:79b834d7c2a2

[gaim-migrate @ 8992] nobody saw that :-P committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 16 Feb 2004 05:55:10 +0000
parents 7cb79236a645
children 27a713139d60
files src/proxy.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Mon Feb 16 04:57:05 2004 +0000
+++ b/src/proxy.c	Mon Feb 16 05:55:10 2004 +0000
@@ -1349,21 +1349,21 @@
 	/* Skip past BND.ADDR */
 	switch(buf[3]) {
 		case 0x01: /* the address is a version-4 IP address, with a length of 4 octets */
-			lseek(source, 4, SEEK_CUR);
+			read(source, buf, 4);
 			break;
 		case 0x03: /* the address field contains a fully-qualified domain name.  The first
 					  octet of the address field contains the number of octets of name that
 					  follow, there is no terminating NUL octet. */
-			read(source, buf+4, 1);
-			lseek(source, buf[4], SEEK_CUR);
+			read(source, buf, 1);
+			read(source, buf, buf[0]);
 			break;
 		case 0x04: /* the address is a version-6 IP address, with a length of 16 octets */
-			lseek(source, 16, SEEK_CUR);
+			read(source, buf, 16);
 			break;
 	}
 
 	/* Skip past BND.PORT */
-	lseek(source, 2, SEEK_CUR);
+	read(source, buf, 2);
 
 	if (phb->account == NULL ||
 		gaim_account_get_connection(phb->account) != NULL) {