TODO: get rid of memcpy,memset,memcmp 314/head
authorsvost <ya.nowa@yandex.ru>
Tue, 12 Apr 2016 13:08:00 +0000 (16:08 +0300)
committersvost <ya.nowa@yandex.ru>
Tue, 12 Apr 2016 13:08:00 +0000 (16:08 +0300)
src/qt/guiutil.cpp

index b5ba67e..3791b07 100644 (file)
@@ -440,7 +440,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
     else
     {
         char pszExePath[MAX_PATH+1];
-        memset(pszExePath, 0, sizeof(pszExePath));
+        std::fill(std::begin(pszExePath), std::end(pszExePath), '\0');
         if (readlink("/proc/self/exe", pszExePath, sizeof(pszExePath)-1) == -1)
             return false;