12 lines
418 B
Diff
12 lines
418 B
Diff
--- lldpad-0.9.41/clif.c 2011-01-11 03:35:01.000000000 +0100
|
|
+++ lldpad-0.9.41/clif.c.new 2011-02-04 10:20:27.639483158 +0100
|
|
@@ -164,7 +164,7 @@
|
|
|
|
/* Allocate maximum buffer usage */
|
|
if (tlvs_hex && attach) {
|
|
- buf = malloc(sizeof(char)*(strlen(tlvs_hex) + 1));
|
|
+ buf = malloc(sizeof(char)*(strlen(tlvs_hex) + 2));
|
|
sprintf(buf, "%s%s","A",tlvs_hex);
|
|
} else if (attach) {
|
|
buf = malloc(sizeof(char) * 2);
|