[Tcpick-project] [bug]function declaration of lookup() under 64-bit platform
Status: Beta
Brought to you by:
duskdruid
From: Song J. <son...@gm...> - 2009-11-17 07:45:37
|
hi, every one: I have compiled tcpick under 64-bit platform. It always core dumps when capturing. The bug is that there is no declaration of function lookup(). So the compile uses "int lookup()" instead. But the really return value type of lookup() is "char *". There is no diff under 32-bit platform. Unlucky, "char *" is 8-byte and "int" is only 4-byte under 64-bit platform. We should make a declaration manually in order to fix this bug. Thanks. |