Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Bug in Dashboard::AddString (http://www.chiefdelphi.com/forums/showthread.php?t=102535)

kccowan 11-02-2012 12:05

Bug in Dashboard::AddString
 
Dashboard::AddString has a bug. It take the address of the address of the string.

memcpy(m_packPtr, (char*)&value, length);

should be

memcpy(m_packPtr, value, length);

KC


All times are GMT -5. The time now is 13:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi