Do not fill output with 0 if n == 3. Fixes #32
Do not fill output with 0 if n == 3. Fixes #32

Additionally, I replaced memset with a loop because it is not safe on every platform.

msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline