replace deprecated sprintf
Fixes warnings of the following sort
hessian2replicas.cc:484:15: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
...