wok-current diff dia/stuff/dia-overflow-fix.patch @ rev 24804
updated liblouis and liblouis-dev (3.13.0 -> 3.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 10:57:54 2022 +0100 (2022-03-22) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dia/stuff/dia-overflow-fix.patch Tue Mar 22 10:57:54 2022 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +diff -wbBur dia-0.97.1/plug-ins/xfig/xfig-export.c dia-0.97.1.my/plug-ins/xfig/xfig-export.c 1.5 +--- dia-0.97.1/plug-ins/xfig/xfig-export.c 2009-11-07 17:28:34.000000000 +0300 1.6 ++++ dia-0.97.1.my/plug-ins/xfig/xfig-export.c 2010-11-15 17:44:05.640896280 +0300 1.7 +@@ -417,6 +417,9 @@ 1.8 + if (text[i] > 127) { 1.9 + newlen += 3; 1.10 + } 1.11 ++ if (text[i] == '\\') { 1.12 ++ newlen += 1; 1.13 ++ } 1.14 + } 1.15 + returntext = g_malloc(sizeof(char)*(newlen+1)); 1.16 + j = 0; 1.17 +@@ -1085,10 +1088,10 @@ 1.18 + figtext = figText(renderer, (unsigned char *) text); 1.19 + /* xfig texts are specials */ 1.20 + fprintf(renderer->file, "4 %d %d %d 0 %d %s 0.0 6 0.0 0.0 %d %d %s\\001\n", 1.21 +- figAlignment(renderer, alignment), 1.22 +- figColor(renderer, color), 1.23 +- figDepth(renderer), 1.24 +- figFont(renderer), 1.25 ++ (int)figAlignment(renderer, alignment), 1.26 ++ (int)figColor(renderer, color), 1.27 ++ (int)figDepth(renderer), 1.28 ++ (int)figFont(renderer), 1.29 + xfig_dtostr(d_buf, figFontSize(renderer)), 1.30 + (int)figCoord(renderer, pos->x), 1.31 + (int)figCoord(renderer, pos->y),