Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
e888838e
Commit
e888838e
authored
Jun 10, 2014
by
Jonathan Jenkins
Browse files
prefix for categories not accounted in static buffer size
parent
d5c1c2d6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/models/networks/model-net/model-net.c
View file @
e888838e
...
...
@@ -76,7 +76,7 @@ int model_net_get_id(char *name){
void
model_net_write_stats
(
tw_lpid
lpid
,
struct
mn_stats
*
stat
)
{
int
ret
;
char
id
[
32
];
char
id
[
19
+
CATEGORY_NAME_MAX
+
1
];
char
data
[
1024
];
sprintf
(
id
,
"model-net-category-%s"
,
stat
->
category
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment