diff options
| author | Venkatesh Srinivas <[email protected]> | 2011-08-07 12:19:14 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-08-10 22:42:43 -0400 |
| commit | 25133bd74b75825e8f2ddf551ca09f4537b73a0f (patch) | |
| tree | 49c6a1fd6e8dcd8285101976eb1ec75b551c358f /src/script.cpp | |
| parent | Merge pull request #448 from sipa/cbitcoinaddress (diff) | |
| download | discoin-25133bd74b75825e8f2ddf551ca09f4537b73a0f.tar.xz discoin-25133bd74b75825e8f2ddf551ca09f4537b73a0f.zip | |
Use 'unsigned char' rather than 'char' for pchMessageStart.
Regarding https://bitcointalk.org/index.php?topic=28022.0
main.cpp has: "char pchMessageStart[4] = { 0xf9, 0xbe, 0xb4, 0xd9 };"
Per discussion on the thread linked, leaving the signedness of
pchMessageStart is unsafe for values > 0x80. This patch specifies
'unsigned char' in main.cpp and net.h.
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'src/script.cpp')
0 files changed, 0 insertions, 0 deletions