diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 14:28:39 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 19:14:33 -0400 |
| commit | 2b7165e76f78b4b92e7ec09de26d96c3e0c5849f (patch) | |
| tree | 8835752ea32b4c6b2c2900749b5992cb8f1785b7 /lib/csv.c | |
| parent | fc746f1c01daf34600d83293647199e81fcb8316 (diff) | |
*: use appropriate buffer sizes, specifiers
- Fix 1 byte overflow when showing GR info in bgpd
- Use PATH_MAX for path buffers
- Use unsigned specifiers for uint16_t's in zebra pbr
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/csv.c')
| -rw-r--r-- | lib/csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -637,7 +637,7 @@ void csv_dump(csv_t *csv) static int get_memory_usage(pid_t pid) { int fd, data, stack; - char buf[4096], status_child[BUFSIZ]; + char buf[4096], status_child[PATH_MAX]; char *vm; snprintf(status_child, sizeof(status_child), "/proc/%d/status", pid); |
