I have added +1 while getting buffer size from bookmark like below:
ASInt32 bufSize = PDBookmarkGetTitle(bmObj, NULL, 0) + 1;
then same "bufSize" is used to get the title.
This will handle NULL pointer appended to the title.
I have added +1 while getting buffer size from bookmark like below:
ASInt32 bufSize = PDBookmarkGetTitle(bmObj, NULL, 0) + 1;
then same "bufSize" is used to get the title.
This will handle NULL pointer appended to the title.