projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent channel buffer allocation larger than memory
[lttng-tools.git]
/
src
/
bin
/
lttng
/
conf.c
diff --git
a/src/bin/lttng/conf.c
b/src/bin/lttng/conf.c
index f96be3a8175a248e8c1e6187e8e5fc5e96c8b270..6fc3e605128181e8615c72976129c4c56d70e7da 100644
(file)
--- a/
src/bin/lttng/conf.c
+++ b/
src/bin/lttng/conf.c
@@
-15,7
+15,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <limits.h>
#include <stdio.h>
#define _LGPL_SOURCE
#include <limits.h>
#include <stdio.h>
@@
-184,6
+183,7
@@
int _config_read_session_name(char *path, char **name)
int ret = 0;
FILE *fp;
char var[NAME_MAX], *session_name;
int ret = 0;
FILE *fp;
char var[NAME_MAX], *session_name;
+
#if (NAME_MAX == 255)
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
#if (NAME_MAX == 255)
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
This page took
0.026454 seconds
and
5
git commands to generate.