Use const on all read-only buffers
diff --git a/utils.h b/utils.h
index 92df065..2011d77 100644
--- a/utils.h
+++ b/utils.h
@@ -38,7 +38,7 @@
 
 // map a name to its ID
 // return 0 if not found
-int name2id(name_map* map, int max, char *name);
+int name2id(name_map* map, int max, const char *name);
 
 // reverse mapid to id
 // return 0 if not found