Adding buffer as a parameter to sig2str function