From 9f001a7d10ccf138861c72bb791403c19d30d084 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 2 May 2012 15:02:59 +0200 Subject: small improvements --- dtrain/dtrain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtrain/dtrain.h') 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& strs, vector& 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()); -- cgit v1.2.3