tilem-2.0-64bit.patch 627 B

12345678910111213
  1. diff -ur tilem-2.0/gui/macro.c tilem-2.0-64bit/gui/macro.c
  2. --- tilem-2.0/gui/macro.c 2011-11-26 21:47:07.000000000 +0100
  3. +++ tilem-2.0-64bit/gui/macro.c 2012-07-23 22:48:24.000000000 +0200
  4. @@ -134,7 +134,7 @@
  5. char * lengthchar = g_new0(char, 4);
  6. int length = strlen(emu->macro->actions[i]->value);
  7. fwrite("file=", 1, 5, fp);
  8. - sprintf(lengthchar, "%04d", strlen(emu->macro->actions[i]->value));
  9. + sprintf(lengthchar, "%04zd", strlen(emu->macro->actions[i]->value));
  10. fwrite(lengthchar, 1, sizeof(int), fp);
  11. fwrite("-", 1, 1, fp);
  12. fwrite(emu->macro->actions[i]->value, 1, length, fp);