fixed overflow in const string init with sprintf