Hello,

First, kudos! rrdtool 1.2 rocks.

Is it possible to make MAX_VNAME_LEN larger, perhaps FILENAME_MAX?

It's very easy to overflow the default MAX_VNAME_LEN of 29 when you're 
constructing vnames in an automated fashion (e.g. 
DEF:${MACHINE}_${RRDNAME}).

The following (or similar) should do the job:

$ diff rrd_graph.h.orig rrd_graph.h
8,9c8,9
< #define MAX_VNAME_LEN 29
< #define DEF_NAM_FMT "%29[-_A-Za-z0-9]"
---
 > #define MAX_VNAME_LEN 64
 > #define DEF_NAM_FMT "%64[-_A-Za-z0-9]"

Thanks!

Regards,
George Coulouris
National Center for Biotechnology Information (contractor)

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to