Commit 7c208306 authored by Sven Robertz's avatar Sven Robertz
Browse files

added heads-up comment

parent 6d4981d8
...@@ -508,7 +508,7 @@ int skip_struct(buffer *d, unsigned char *sig, unsigned int len, unsigned int *p ...@@ -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); unsigned int namelen = unpack_varint(sig, *pos, &nbytes);
#ifdef DEBUG #ifdef DEBUG
VERBOSE_PRINTF("namelen==%d",namelen); VERBOSE_PRINTF("namelen==%d",namelen);
char name[namelen+1]; char name[namelen+1]; //HERE BE DRAGONS. alloca?
strncpy(name, sig+*pos+nbytes, namelen); strncpy(name, sig+*pos+nbytes, namelen);
name[namelen]=0; name[namelen]=0;
VERBOSE_PRINTF(", name = %s",name); VERBOSE_PRINTF(", name = %s",name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment