ref: f3a27738025ce7d2bce24548f13133ff499ff5f6
parent: 4b02ebae717ccac8085030c6168175c88060d92b
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Tue May 17 08:02:30 EDT 2005
Null-terminate generated Net/Netslide descriptive game IDs. [originally from svn r5794]
--- a/net.c
+++ b/net.c
@@ -606,6 +606,7 @@
}
}
assert(p - desc <= w*h*3);
+ *p = '\0';
sfree(tiles);
sfree(barriers);
--- a/netslide.c
+++ b/netslide.c
@@ -645,6 +645,7 @@
}
}
assert(p - desc <= w*h*3);
+ *p = '\0';
sfree(tiles);
sfree(barriers);