]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/saxdb.c
fix crash when rerouting without routing configured
[irc/evilnet/x3.git] / src / saxdb.c
index 88f8352e614b90dc570e8975df4bf7b76db7fafa..6ebce65da64a0467051a2ecbb1f00e3dcb90a8de 100644 (file)
@@ -1,9 +1,9 @@
 /* saxdb.c - srvx database manager
  * Copyright 2002-2004 srvx Development Team
  *
- * This file is part of srvx.
+ * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
@@ -296,7 +296,7 @@ saxdb_write_string(struct saxdb_context *dest, const char *name, const char *val
 
 void
 saxdb_write_int(struct saxdb_context *dest, const char *name, unsigned long value) {
-    unsigned char buf[16];
+    char buf[16];
     /* we could optimize this to take advantage of the fact that buf will never need escapes */
     snprintf(buf, sizeof(buf), "%lu", value);
     saxdb_write_string(dest, name, buf);