mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Platform Testing - clean builds
- on Ubuntu 9.04 - on Fedora Core 10 - on Crunchbang Linux - on Windows XP/Cygwin
This commit is contained in:
parent
89bbce8661
commit
11ee827a0d
2 changed files with 4 additions and 3 deletions
|
@ -803,7 +803,7 @@ void Table::optimize (std::string& output) const
|
||||||
Much better.
|
Much better.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char* patterns[] =
|
char patterns[5][16] =
|
||||||
{
|
{
|
||||||
" \n",
|
" \n",
|
||||||
" \n",
|
" \n",
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <linux/limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
|
@ -510,7 +510,8 @@ std::string handleEdit (TDB& tdb, T& task, Config& conf)
|
||||||
pattern << dataLocation << "/task." << seq->getId () << ".XXXXXX";
|
pattern << dataLocation << "/task." << seq->getId () << ".XXXXXX";
|
||||||
char cpattern [PATH_MAX];
|
char cpattern [PATH_MAX];
|
||||||
strcpy (cpattern, pattern.str ().c_str ());
|
strcpy (cpattern, pattern.str ().c_str ());
|
||||||
char* file = mktemp (cpattern);
|
mkstemp (cpattern);
|
||||||
|
char* file = cpattern;
|
||||||
|
|
||||||
// Format the contents, T -> text, write to a file.
|
// Format the contents, T -> text, write to a file.
|
||||||
std::string before = formatTask (conf, *seq);
|
std::string before = formatTask (conf, *seq);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue