summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-sirfflash_c
blob: 979793a56d2cd561ccb399af94cdf1eb3f3a34b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gpsd-2.39.orig/sirfflash.c	2009-01-28 21:53:47.000000000 +0100
+++ gpsd-2.39/sirfflash.c	2010-01-16 09:27:49.000000000 +0100
@@ -193,7 +193,7 @@ sirfSetProto(int pfd, struct termios *te
 
 	sirf[7] = sirf[6] = (unsigned char)proto;
 	/*@i@*/i = htonl(speed); /* borrow "i" to put speed into proper byte order */
-	/*@i@*/bcopy(&i, sirf+8, 4);
+	/*@i@*/memcpy(sirf+8, &i, 4);
 
 	/* send at whatever baud we're currently using */
 	(void)sirf_write(pfd, sirf);