From: Wolfgang Bangerth Date: Mon, 21 Feb 2000 13:18:16 +0000 (+0000) Subject: Fix a problem with a missing string end id. X-Git-Tag: v8.0.0~20911 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c630a2e8708bf617ecf2e3a146d259b58a7fbc84;p=dealii.git Fix a problem with a missing string end id. git-svn-id: https://svn.dealii.org/trunk@2449 0785d39b-7218-0410-832d-ea1e28bc413d --- 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