slackbuilds_ponce/academic/tilem2/patches/tilem-2.0-64bit.patch
JK Wood f757ebccbd academic/tilem2: Added (TI-calculator emulator for linux).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2013-01-20 09:03:04 -05:00

12 lines
627 B
Diff

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