]> jfr.im git - solanum.git/blobdiff - include/cache.h
cache: use rb_strdup() instead of a static buffer for cache lines.
[solanum.git] / include / cache.h
index 4bf7ae512ffbf6ebeb70d204e7a232d1b9cd2c65..d5396d39af69e20e8b5778c0955ddff304195a1b 100644 (file)
@@ -4,7 +4,6 @@
 
 #define HELP_MAX       100
 
-#define CACHELINELEN   81
 #define CACHEFILELEN   30
 /* two servernames, a gecos, three spaces, ":1", '\0' */
 #define LINKSLINELEN   (HOSTLEN + HOSTLEN + REALLEN + 6)
@@ -23,7 +22,7 @@ struct cachefile
 
 struct cacheline
 {
-       char data[CACHELINELEN];
+       char *data;
        rb_dlink_node linenode;
 };