Steve Fink: # - memcpy(targ, ret->strstart, ret->bufused); # - targ[ret->bufused + 1] = '\0'; # + memcpy(targ, ret->strstart, ret->strlen); # + targ[ret->strlen] = '\0';
I could be wrong, but isn't strlen the length in characters rather than the length in bytes? --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) "If you want to propagate an outrageously evil idea, your conclusion must be brazenly clear, but your proof unintelligible." --Ayn Rand, explaining how today's philosophies came to be