Update smspy.c

Correct malloc size