diff options
author | Debian Mobcom Maintainers <Debian-mobcom-maintainers@lists.alioth.debian.org> | 2018-08-09 14:23:10 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2018-11-14 23:38:45 +0100 |
commit | d50e7f2c574ea7c74e079d4673ecc35ae00cb864 (patch) | |
tree | bbeed51e27e7dfc997ac50b5722cddf0c25129d4 | |
parent | 3ad0cccaf95da2a76a2615ae57009dbe631d5025 (diff) |
path-max
===================================================================
Gbp-Pq: Name path-max.patch
-rw-r--r-- | src/plugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index 40de4f8..8691d65 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -46,7 +46,12 @@ int osmo_plugin_load_all(const char *directory) { unsigned int num = 0; +/* there might be no PATH_MAX defined, so use the value from linux */ +#ifdef PATH_MAX char fname[PATH_MAX]; +#else + char fname[4096]; +#endif DIR *dir; struct dirent *entry; |