OSDN Git Service

EPG解析処理再考中
[iptd/iPTd.git] / src / Raym / HTTPURLResponse.cpp
index 45526cb..434df0b 100644 (file)
@@ -98,7 +98,11 @@ HTTPURLResponse *HTTPURLResponse::initWithURL(URL *url, Integer statusCode, Stri
         {
             long long len = atoll(val->cString());
             char tmp[32];
+#ifdef _WIN32
             sprintf_s(tmp, sizeof(tmp), "%lld", len);
+#else
+            sprintf(tmp, "%lld", len);
+#endif
             if (strcmp(tmp, val->cString()) == 0)
             {
                 content_length = len;