projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caeaecf
)
freeswitch plugin: Changed malloc and snprintf size to +3 instead of +2
author
Leon de Rooij
<leon@scarlet-internet.nl>
Fri, 24 Apr 2009 09:39:44 +0000
(11:39 +0200)
committer
Florian Forster
<sifnfors@informatik.stud.uni-erlangen.de>
Thu, 16 Jul 2009 08:54:14 +0000
(10:54 +0200)
src/freeswitch.c
patch
|
blob
|
history
diff --git
a/src/freeswitch.c
b/src/freeswitch.c
index
52ff088
..
e171aa3
100644
(file)
--- a/
src/freeswitch.c
+++ b/
src/freeswitch.c
@@
-419,7
+419,7
@@
static void fs_submit (const fs_command_t *fc,
DEBUG (fm->type);
DEBUG ("mv->value");
-
//
DEBUG (mv->value);
+ DEBUG (mv->value);
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
@@
-448,8
+448,8
@@
static int fs_read_command (fs_command_t *fc)
/* can't the following be done nicer ? */
char *line;
- line = (char *) malloc (strlen(fc->line)+
2
);
- snprintf(line, strlen(fc->line)+
2
, "%s\n\n", fc->line);
+ line = (char *) malloc (strlen(fc->line)+
3
);
+ snprintf(line, strlen(fc->line)+
3
, "%s\n\n", fc->line);
esl_send_recv(&esl_handle, line);
fc->buffer_fill = 0;