Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
7c208306
Commit
7c208306
authored
Apr 11, 2013
by
Sven Robertz
Browse files
added heads-up comment
parent
6d4981d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/c/experimental/labcomm_sig_parser.c
View file @
7c208306
...
...
@@ -508,7 +508,7 @@ int skip_struct(buffer *d, unsigned char *sig, unsigned int len, unsigned int *p
unsigned
int
namelen
=
unpack_varint
(
sig
,
*
pos
,
&
nbytes
);
#ifdef DEBUG
VERBOSE_PRINTF
(
"namelen==%d"
,
namelen
);
char
name
[
namelen
+
1
];
char
name
[
namelen
+
1
];
//HERE BE DRAGONS. alloca?
strncpy
(
name
,
sig
+*
pos
+
nbytes
,
namelen
);
name
[
namelen
]
=
0
;
VERBOSE_PRINTF
(
", name = %s"
,
name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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