fixed issue in calculator caused by failure to initialize buffer size for holding results.