summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-sirfflash_c
blob: 3664b374fb902672bf43b87375c7178cbf55a72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- gpsd-2.37.orig/sirfflash.c	2007-10-12 15:44:48.000000000 +0200
+++ gpsd-2.37/sirfflash.c	2008-10-09 14:17:23.000000000 +0200
@@ -166,7 +166,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);