OSDN Git Service

EPG解析処理再考中
[iptd/iPTd.git] / src / Raym / URLConnection.cpp
index c953408..9058b61 100644 (file)
@@ -153,7 +153,11 @@ static HTTPURLResponse *receiveHTTPURLResponse(int socket, URL *url)
 
         int status_code = atoi(code);
         char tmp[256];
+#ifdef _WIN32
         sprintf_s(tmp, sizeof(tmp), "%d", status_code);
+#else
+        sprintf(tmp, "%d", status_code);
+#endif
         if (strcmp(code, tmp) != 0)
         {
             DebugLog3("error: invalid format. (Status-Code) \"%s\"\n", statusLine);