FIXED: Allow commands that exceed the Prolog stream buffer size to
be transferred in chunks.  Note that this also uses memcpy rather
then qstrncpy() to avoid a possible buffer overrun.