{"action":"created","issue":{"url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/96","repository_url":"https://api.github.com/repos/lucabaldini/xpedaq","labels_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/96/comments","events_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/96/events","html_url":"https://github.com/lucabaldini/xpedaq/issues/96","id":154319396,"number":96,"title":"QuickUsb does not compile under Windows 32 bit","user":{"login":"lucabaldini","id":8972541,"avatar_url":"https://avatars.githubusercontent.com/u/8972541?v=3","gravatar_id":"","url":"https://api.github.com/users/lucabaldini","html_url":"https://github.com/lucabaldini","followers_url":"https://api.github.com/users/lucabaldini/followers","following_url":"https://api.github.com/users/lucabaldini/following{/other_user}","gists_url":"https://api.github.com/users/lucabaldini/gists{/gist_id}","starred_url":"https://api.github.com/users/lucabaldini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucabaldini/subscriptions","organizations_url":"https://api.github.com/users/lucabaldini/orgs","repos_url":"https://api.github.com/users/lucabaldini/repos","events_url":"https://api.github.com/users/lucabaldini/events{/privacy}","received_events_url":"https://api.github.com/users/lucabaldini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T19:10:28Z","updated_at":"2016-05-12T09:41:16Z","closed_at":null,"body":"```\r\n\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp: In constructor 'CQuickUsb::CQuickUsb(const cha\r\nr*)':\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp:55:38: error: 'strcpy_s' was not declared in th\r\nis scope\r\n     strcpy_s(m_devName, size, devName);\r\n                                      ^\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp: In member function 'void CQuickUsb::SetName(co\r\nnst char*)':\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp:102:35: error: 'strcpy_s' was not declared in t\r\nhis scope\r\n     strcpy_s(m_devName, size, name);\r\n                                   ^\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp: In member function 'void CQuickUsb::SetDeviceN\r\name(const char*)':\r\n..\\quickusb-2.15.2\\CQuickUsb.cpp:120:35: error: 'strcpy_s' was not declared in t\r\nhis scope\r\n     strcpy_s(m_devName, size, name);\r\n                                   ^\r\nMakefile:971: recipe for target 'build/CQuickUsb.o' failed\r\nmingw32-make[1]: *** [build/CQuickUsb.o] Error 1\r\nmingw32-make[1]: Leaving directory 'C:/Users/GPD/DAQ/xpedaq-0.8.3/xpedaq'\r\nMakefile:41: recipe for target 'sub-xpedaq-make_default' failed\r\nmingw32-make: *** [sub-xpedaq-make_default] Error 2 \r\n```"},"comment":{"url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/comments/218708800","html_url":"https://github.com/lucabaldini/xpedaq/issues/96#issuecomment-218708800","issue_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/96","id":218708800,"user":{"login":"lucabaldini","id":8972541,"avatar_url":"https://avatars.githubusercontent.com/u/8972541?v=3","gravatar_id":"","url":"https://api.github.com/users/lucabaldini","html_url":"https://github.com/lucabaldini","followers_url":"https://api.github.com/users/lucabaldini/followers","following_url":"https://api.github.com/users/lucabaldini/following{/other_user}","gists_url":"https://api.github.com/users/lucabaldini/gists{/gist_id}","starred_url":"https://api.github.com/users/lucabaldini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucabaldini/subscriptions","organizations_url":"https://api.github.com/users/lucabaldini/orgs","repos_url":"https://api.github.com/users/lucabaldini/repos","events_url":"https://api.github.com/users/lucabaldini/events{/privacy}","received_events_url":"https://api.github.com/users/lucabaldini/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T09:41:16Z","updated_at":"2016-05-12T09:41:16Z","body":"Trying to push this diff:\r\n```\r\ndiff --git a/quickusb-2.15.2/CQuickUsb.cpp b/quickusb-2.15.2/CQuickUsb.cpp\r\nindex ab1b723..b391a3b 100644\r\n--- a/quickusb-2.15.2/CQuickUsb.cpp\r\n+++ b/quickusb-2.15.2/CQuickUsb.cpp\r\n@@ -49,15 +49,15 @@ CQuickUsb::CQuickUsb(PCQCHAR devName) :\r\n     m_lastError(QUICKUSB_ERROR_NO_ERROR),\r\n     m_lastDriverError(QUICKUSB_ERROR_NO_ERROR) {\r\n \r\n-#if defined(_WIN32)\r\n-    size_t size = strlen(devName) + 1;\r\n-    m_devName = new QCHAR[size];\r\n-    strcpy_s(m_devName, size, devName);\r\n-#else\r\n+    //#if defined(_WIN32)\r\n+    //size_t size = strlen(devName) + 1;\r\n+    //m_devName = new QCHAR[size];\r\n+    //strcpy_s(m_devName, size, devName);\r\n+    //#else\r\n     int size = strlen(devName) + 1;\r\n     m_devName = new QCHAR[size];\r\n     strcpy(m_devName, devName);\r\n-#endif\r\n+    //#endif\r\n }\r\n \r\n \r\n@@ -96,15 +96,15 @@ void CQuickUsb::SetName(PCQCHAR name) {\r\n         delete [] m_devName;\r\n     }\r\n \r\n-#if defined(_WIN32)\r\n-    size_t size = strlen(name) + 1;\r\n-    m_devName = new QCHAR[size];\r\n-    strcpy_s(m_devName, size, name);\r\n-#else\r\n+    //#if defined(_WIN32)\r\n+    //size_t size = strlen(name) + 1;\r\n+    //m_devName = new QCHAR[size];\r\n+    //strcpy_s(m_devName, size, name);\r\n+    //#else\r\n     int size = strlen(name) + 1;\r\n     m_devName = new QCHAR[size];\r\n     strcpy(m_devName, name);\r\n-#endif\r\n+    //#endif\r\n }\r\n \r\n \r\n@@ -114,15 +114,15 @@ void CQuickUsb::SetDeviceName(PCQCHAR name) {\r\n         delete [] m_devName;\r\n     }\r\n \r\n-#if defined(_WIN32)\r\n-    size_t size = strlen(name) + 1;\r\n-    m_devName = new QCHAR[size];\r\n-    strcpy_s(m_devName, size, name);\r\n-#else\r\n+    //#if defined(_WIN32)\r\n+    //size_t size = strlen(name) + 1;\r\n+    //m_devName = new QCHAR[size];\r\n+    //strcpy_s(m_devName, size, name);\r\n+    //#else\r\n     int size = strlen(name) + 1;\r\n     m_devName = new QCHAR[size];\r\n     strcpy(m_devName, name);\r\n-#endif\r\n+    //#endif\r\n }\r\n```"}}