git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
58e8cdf
)
TODO: get rid of memcpy,memset,memcmp
314/head
author
svost
<ya.nowa@yandex.ru>
Tue, 12 Apr 2016 13:08:00 +0000 (16:08 +0300)
committer
svost
<ya.nowa@yandex.ru>
Tue, 12 Apr 2016 13:08:00 +0000 (16:08 +0300)
src/qt/guiutil.cpp
patch
|
blob
|
history
diff --git
a/src/qt/guiutil.cpp
b/src/qt/guiutil.cpp
index
b5ba67e
..
3791b07
100644
(file)
--- a/
src/qt/guiutil.cpp
+++ b/
src/qt/guiutil.cpp
@@
-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;