diff options
-rw-r--r-- | src/namestore/test_plugin_namestore.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/namestore/test_plugin_namestore.c b/src/namestore/test_plugin_namestore.c index b9c7fbef9..ff1f83780 100644 --- a/src/namestore/test_plugin_namestore.c +++ b/src/namestore/test_plugin_namestore.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -194,11 +194,19 @@ run (void *cls, | |||
194 | } | 194 | } |
195 | 195 | ||
196 | 196 | ||
197 | #ifndef PATH_MAX | ||
198 | /** | ||
199 | * Assumed maximum path length (for the configuration file name). | ||
200 | */ | ||
201 | #define PATH_MAX 4096 | ||
202 | #endif | ||
203 | |||
204 | |||
197 | int | 205 | int |
198 | main (int argc, | 206 | main (int argc, |
199 | char *argv[]) | 207 | char *argv[]) |
200 | { | 208 | { |
201 | char cfg_name[128]; | 209 | char cfg_name[PATH_MAX]; |
202 | char *const xargv[] = { | 210 | char *const xargv[] = { |
203 | "test-plugin-namestore", | 211 | "test-plugin-namestore", |
204 | "-c", | 212 | "-c", |