String keeps getting "chopped"

Hi everyone!

I’m learning how to use my xbees, and I'm trying to send a simple string between 2 arduino megas (each connected to a different computer) via xbees. Everything is working fine, except that my transmitted string keeps getting chopped on the receiving arduino. For instance:

String on transmitting arduino: WHY_DOES_MY_STRING_GET_CUT_OFF_WHENEVER_I_TRY_TO_SEND_THIS_BEAUTIFUL_STRING_USING_XBEES_AND_MY_ARDUINO (the end of the string is marked with a \n)

String on receiving arduino:
WHY_DOES_MY_STRING_GET_CUT_OFF_WHENEVER_I_TRY_TO_SEND_THIS_BEAUTIFUL_STRING_USING_XBEES

Any thoughts on what may be going on?

Update: turns out it was due to memory allocation issues on the variables. Thanks guys!

What does the XBee documentation say about internal buffer sizes and/or maximum transmit record length?

What does the XBee documentation say about internal buffer sizes

Nothing.

and/or maximum transmit record length?

Nothing.

XBees manage the sending of data when the internal buffer, if any, of whatever size, gets full. One need not worry about that aspect.

What one DOES need to worry about is what one CAN control, like the code on the Arduinos that the XBees are connected to.