Skip to content
Snippets Groups Projects
Commit 7c208306 authored by Sven Robertz's avatar Sven Robertz
Browse files

added heads-up comment

parent 6d4981d8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment