solved 64 bit issue in push/pop stroke interface

This commit is contained in:
Andreas Steffen
2006-10-31 23:17:21 +00:00
parent 231f704548
commit 923ee10eef
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -93,14 +93,14 @@ static void pop_string(stroke_msg_t *msg, char **string)
/* check for sanity of string pointer and string */
if (string < (char**)msg
|| string > (char**)msg + sizeof(stroke_msg_t)
|| (u_int)*string < (u_int)((char*)msg->buffer - (char*)msg)
|| (u_int)*string > msg->length)
|| (unsigned long)*string < (unsigned long)((char*)msg->buffer - (char*)msg)
|| (unsigned long)*string > msg->length)
{
*string = "(invalid pointer in stroke msg)";
}
else
{
*string = (char*)msg + (u_int)*string;
*string = (char*)msg + (unsigned long)*string;
}
}