Platform Testing - clean builds

- on Ubuntu 9.04
- on Fedora Core 10
- on Crunchbang Linux
- on Windows XP/Cygwin
This commit is contained in:
Paul Beckingham 2009-05-14 22:20:09 -04:00
parent 89bbce8661
commit 11ee827a0d
2 changed files with 4 additions and 3 deletions

View file

@ -803,7 +803,7 @@ void Table::optimize (std::string& output) const
Much better.
*/
char* patterns[] =
char patterns[5][16] =
{
" \n",
" \n",

View file

@ -31,7 +31,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <linux/limits.h>
#include <limits.h>
#include <string.h>
#include "task.h"
@ -510,7 +510,8 @@ std::string handleEdit (TDB& tdb, T& task, Config& conf)
pattern << dataLocation << "/task." << seq->getId () << ".XXXXXX";
char cpattern [PATH_MAX];
strcpy (cpattern, pattern.str ().c_str ());
char* file = mktemp (cpattern);
mkstemp (cpattern);
char* file = cpattern;
// Format the contents, T -> text, write to a file.
std::string before = formatTask (conf, *seq);