Have you try to quote that line off code and check if the script crash ??

Well that line it´s ok, you are using the bcopy correctly.
Do you know the total lengh off &brushstroke ??
Mybe the lengh off the data is big and your memory size is not that big i think that can create a lack off memory and mIRC can crash because off it.

good luck