chiark / gitweb /
Make the code base clean under -Wwrite-strings.
[sgt-puzzles.git] / emcc.c
diff --git a/emcc.c b/emcc.c
index dbb4ab974df5c022b13a11f423cf9d8d4acee89a..563fbe2799a02b0c67c4462cd6e7f97cc91e33d3 100644 (file)
--- a/emcc.c
+++ b/emcc.c
@@ -787,7 +787,7 @@ struct savefile_write_ctx {
     size_t pos;
 };
 
-static void savefile_write(void *vctx, void *buf, int len)
+static void savefile_write(void *vctx, const void *buf, int len)
 {
     struct savefile_write_ctx *ctx = (struct savefile_write_ctx *)vctx;
     if (ctx->buffer)