Permalink
Browse files

Merge branch 'master' of https://github.com/jobrien929/cs352proxy

  • Loading branch information...
2 parents 21a5f7c + 78e7584 commit ae6d9ebd27ca888b17594c3c730c54edebfa6ff8 @zoukai957 zoukai957 committed Oct 10, 2012
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;
}

0 comments on commit ae6d9eb

Please sign in to comment.