/[escript]/trunk/tools/escriptconvert/escriptconvert.cpp
ViewVC logotype

Diff of /trunk/tools/escriptconvert/escriptconvert.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3258 by caltinay, Fri Sep 17 00:44:20 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 36  string insertTimestep(const string& fStr Line 36  string insertTimestep(const string& fStr
36              endpos++;              endpos++;
37          string fmtStr = s.substr(pos, endpos-pos+1);          string fmtStr = s.substr(pos, endpos-pos+1);
38          char ts[255];          char ts[255];
39          snprintf(ts, 255, fmtStr.c_str(), timeStep*tsMultiplier);          sprintf(ts, fmtStr.c_str(), timeStep*tsMultiplier);
40          s.replace(pos, endpos-pos+1, ts);          s.replace(pos, endpos-pos+1, ts);
41      }      }
42      return s;      return s;

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26