]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/path.c
Document buffer overrun for long land paths
[empserver] / src / lib / common / path.c
index c0344d13e33a8cfda3613b75f8f97fdb71a20903..6313a6174245f5010bcf0706de115b41cedef169 100644 (file)
@@ -91,6 +91,8 @@ bp_init(void)
 /*
  * Find the best path from sector to to sector, and put the Empire movement
  * string in path.  Return 0 on success, -1 on error.
+ * FIXME unsafe by design: assumes path[] has space; buffer overrun
+ * when path gets long!
  */
 static int
 best_path(struct sctstr *from, struct sctstr *to, char *path, int mob_type)