Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update tap.c

quick minor bug fix
  • Loading branch information...
commit 78e7584736839295d0e0af3cd3b26271dec267a8 1 parent 720081e
@zoukai957 zoukai957 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tap.c
View
2  tap.c
@@ -109,7 +109,7 @@ void writeTap(int socketID, int tap_fd){
char strippedMsg[500];
memcpy(strippedMsg, msg.data, length);
- if(write(tap_fd, msg.data, sizeof(msg)) < 0){
+ if(write(tap_fd, msg.data, length) < 0){
printf("Error: Could not write to tap\n");
return 1;
}
Please sign in to comment.
Something went wrong with that request. Please try again.