summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b212e1)
raw | patch | inline | side by side (parent: 9b212e1)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 26 Mar 2006 14:29:53 +0000 (14:29 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 26 Mar 2006 14:29:53 +0000 (14:29 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index 6dbece3612d84421b2ff20b274c4cbad6b27077b..6fc877c1b952211631e9d796a18cb979787b06eb 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
windir = getenv("windir");
/* %windir% is something like D:\windows or C:\winnt */
if (windir != NULL) {
- strncpy(rrd_win_default_font,windir,999);
- rrd_win_default_font[999] = '\0';
+ strncpy(rrd_win_default_font,windir,500);
+ rrd_win_default_font[500] = '\0';
strcat(rrd_win_default_font,"\\fonts\\");
strcat(rrd_win_default_font,RRD_DEFAULT_FONT);
for(i=0;i<DIM(text_prop);i++){