]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Qualify sscanf properly with std::.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Nov 2009 14:05:26 +0000 (14:05 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Nov 2009 14:05:26 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@20117 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parsed_function.cc

index c3d151398483c280e604dfcc4a07e3df394e281e..c92d0b743a7a40faa17de7a9632375b265062abf 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2007, 2008 by the deal.II authors
+//    Copyright (C) 2007, 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -85,7 +85,7 @@ namespace Functions {
          Utilities::split_string_list(const_list[i], '=');
        AssertThrow(this_c.size() == 2, ExcMessage("Invalid format"));
        double tmp;
-       AssertThrow( sscanf(this_c[1].c_str(), "%lf", &tmp),
+       AssertThrow( std::sscanf(this_c[1].c_str(), "%lf", &tmp),
                     ExcMessage("Double number?"));
        constants[this_c[0]] = tmp;
       }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.