(EXTEND_BUFFER): Change order of pointer addition operations, to avoid