]> www.ginac.de Git - ginac.git/blobdiff - check/time_dennyfliegner.cpp
- fixed three little standard-conformance issues.
[ginac.git] / check / time_dennyfliegner.cpp
index cbae278bf82ff28d5d903e411b45d67853cb6af1..4f6b7dc35e522918494266a79eb73b183fae9c83 100644 (file)
@@ -7,7 +7,7 @@
  *  after which e should be just a1^2. */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -38,7 +38,7 @@ static unsigned expand_subs(unsigned size)
                buf << "a" << i << ends;
                a.push_back(symbol(buf.str()));
 #else
-               char buf[4];
+               char buf[5];  // 'a' + 3 decimal digits + '\n'
                ostrstream(buf,sizeof(buf)) << "a" << i << ends;
                a.push_back(symbol(buf));
 #endif