From a95ab86a58094bfd5dd39f6ba3bb157183cfe3e6 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 21 Feb 2000 13:18:16 +0000 Subject: [PATCH] Fix a problem with a missing string end id. git-svn-id: https://svn.dealii.org/trunk@2449 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc | 5 +++++ deal.II/examples/step-5/step-5.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc index 3584831dd5..a131374b86 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc @@ -740,6 +740,11 @@ void LaplaceProblem::output_results (const unsigned int cycle) const filename << "solution-" << cycle << ".eps"; + // In order to append the final + // '\0', we have to put an ``ends'' + // to the end of the string: + filename << ends; + // We can get whatever we wrote to // the stream using the ``str()'' // function. Use that as filename diff --git a/deal.II/examples/step-5/step-5.cc b/deal.II/examples/step-5/step-5.cc index 3584831dd5..a131374b86 100644 --- a/deal.II/examples/step-5/step-5.cc +++ b/deal.II/examples/step-5/step-5.cc @@ -740,6 +740,11 @@ void LaplaceProblem::output_results (const unsigned int cycle) const filename << "solution-" << cycle << ".eps"; + // In order to append the final + // '\0', we have to put an ``ends'' + // to the end of the string: + filename << ends; + // We can get whatever we wrote to // the stream using the ``str()'' // function. Use that as filename -- 2.39.5