Don't like ads? PRO users don't see any ads ;-)
Guest

memset.patch

By: a guest on Jun 2nd, 2010  |  syntax: Diff  |  size: 0.36 KB  |  hits: 170  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- old/src/io_nix.c    2010-06-02 15:51:33.479082144 +0200
  2. +++ new/src/io_nix.c    2010-06-02 16:00:32.239877550 +0200
  3. @@ -170,6 +170,7 @@
  4.   */
  5.  static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
  6.         struct sockaddr_l2 addr;
  7. +       memset(&addr, 0, sizeof (addr));
  8.  
  9.         if (!wm || WIIMOTE_IS_CONNECTED(wm))
  10.                 return 0;