summaryrefslogtreecommitdiff
path: root/dtrain/dtrain.h
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-05-02 15:02:59 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-05-02 15:02:59 +0200
commit5a8ef8ba65b244837e9cedbd64793b82bf284f93 (patch)
tree89fd9a5b7bf342c4bddab1710420317c38e9da5c /dtrain/dtrain.h
parent721ff772038c117da8746836533609eda7737443 (diff)
small improvements
Diffstat (limited to 'dtrain/dtrain.h')
-rw-r--r--dtrain/dtrain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrain/dtrain.h b/dtrain/dtrain.h
index 94d149ce..ac0345a4 100644
--- a/dtrain/dtrain.h
+++ b/dtrain/dtrain.h
@@ -32,7 +32,7 @@ inline void register_and_convert(const vector<string>& strs, vector<WordID>& ids
inline string gettmpf(const string path, const string infix)
{
- char fn[1024];
+ char fn[path.size() + infix.size() + 8];
strcpy(fn, path.c_str());
strcat(fn, "/");
strcat(fn, infix.c_str());