diff options
author | chris <chris> | 2006-09-20 15:45:44 +0000 |
---|---|---|
committer | chris <chris> | 2006-09-20 15:45:44 +0000 |
commit | cc53fdbcd29e95ed3a0aa3cff86f4ecd32f4b8c3 (patch) | |
tree | f7c7cd5c4ca59f91d50948be6f8799e95ee1ba8f | |
parent | cee3e8d557cd5371c153d6d26b07c00a1c1c6074 (diff) |
Fix one-byte buffer overrun.
-rw-r--r-- | tileserver/tileset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tileserver/tileset.c b/tileserver/tileset.c index b4ae93d61..c11c4ea8f 100644 --- a/tileserver/tileset.c +++ b/tileserver/tileset.c @@ -7,7 +7,7 @@ * */ -static const char rcsid[] = "$Id: tileset.c,v 1.4 2006-09-20 14:29:23 chris Exp $"; +static const char rcsid[] = "$Id: tileset.c,v 1.5 2006-09-20 15:45:44 chris Exp $"; /* * Tile sets are stored in directory trees which contain indices of tile @@ -68,7 +68,7 @@ tileset tileset_open(const char *path) { T->t_first = 1; T->t_path = xstrdup(path); - T->t_pathbuf = xmalloc(strlen(path) + sizeof "tiles/a/b/c/tiles.cdb"); + T->t_pathbuf = xmalloc(strlen(path) + sizeof "/tiles/a/b/c/tiles.cdb"); /* Open the tile ID index. */ sprintf(T->t_pathbuf, "%s/index.cdb", T->t_path); |