Pointer variables get changed

It's hard to explain code I can't see. Perhaps you can show your sketch that uses the library you pointed to. It seems most likely that the problem is in your code and not in the library.

Or are you using a library example unchanged? If so, which one?