From 7c208306f55eb0c45e4147c41a1eec568e7b00cc Mon Sep 17 00:00:00 2001 From: Sven Robertz <sven@cs.lth.se> Date: Thu, 11 Apr 2013 15:03:47 +0200 Subject: [PATCH] added heads-up comment --- lib/c/experimental/labcomm_sig_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/c/experimental/labcomm_sig_parser.c b/lib/c/experimental/labcomm_sig_parser.c index e1347e8..66e828f 100644 --- a/lib/c/experimental/labcomm_sig_parser.c +++ b/lib/c/experimental/labcomm_sig_parser.c @@ -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); -- GitLab