*** libs/libmyth/compat_orig.h	Mon Jan  7 15:29:29 2008
--- libs/libmyth/compat.h	Mon Jan  7 15:26:57 2008
***************
*** 16,21 ****
--- 16,22 ----
  #include <winsock2.h>
  #include <ws2tcpip.h>
  #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*)(d), e)
+ #include <stdio.h>
  #undef close
  #else
  #include <sys/time.h>     // Mac OS X needs this before sys/resource
***************
*** 202,208 ****
                          NULL, errCode,
                          MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
                          errStr, 511, NULL))
!         sprintf(errStr, "dlopen()/dlsym() caused error %d", errCode);
  
      return errStr;
  }
--- 203,209 ----
                          NULL, errCode,
                          MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
                          errStr, 511, NULL))
!         snprintf(errStr, 512, "dlopen()/dlsym() caused error %d", errCode);
  
      return errStr;
  }
