patch strcpy to strncpy
Error out for scale=1 or parallel=1