http://www.g15tools.com/forum/viewtopic.php?f=12&t=64
--- libg15daemon_client/g15daemon_net.c 2008-06-01 14:36:23.000000000 +0200<br />
+++ libg15daemon_client/g15daemon_net.c_new 2008-06-01 14:39:06.000000000 +0200<br />
@@ -217,7 +217,7 @@ int g15_recv_oob_answer(int sock) {<br />
if(poll(pfd,1,100)>0){<br />
if(pfd[0].revents & POLLPRI && !(pfd[0].revents & POLLERR || pfd[0].revents & POLLHUP || pfd[0].revents & POLLNVAL)) {<br />
memset(packet,0,sizeof(packet));<br />
- msgret = recv(sock, packet, 10 , MSG_OOB);<br />
+ msgret = recv(sock, packet, sizeof(packet) , MSG_OOB);<br />
if (msgret < 1) {<br />
return -1;<br />
}
Pretty advanced aye? 2 bytes off. g15macro is now working for me.
To add this to the .spec file, add Patch0: g15daemon_net.c.patch after your source declaration
and after %setup (or similar, in %prep anyway) add %patch -p0. This is if you're building rpm packages.
To add it to your normal build, just use patch -p0 , but i couldn't get that to work, so i had to run
patch libg15daemon_client/g15daemon_net.c g15daemon_net.c.patch
man patch for more info ;)
This patch has just (as of
This patch has just (as of today) been added to the g15 ubuntu package.
Works like a charm
Got it working. Nice find.
PS: your patch has a bunch of BR tags in it