enable linux framebuffer support for SDL
[openwrt/svn-archive/archive.git] / lang / eggdrop / patches / 003-language_c.patch
1 --- eggdrop/src/language.c 2004-04-06 07:56:38.000000000 +0100
2 +++ eggdrop-patched/src/language.c 2008-09-08 23:24:34.000000000 +0100
3 @@ -240,8 +240,19 @@
4 #else
5 if (sscanf(lbuf, "0x%x,%500c", &lidx, ltext) != 2) {
6 #endif
7 - putlog(LOG_MISC, "*", "Malformed text line in %s at %d.",
8 - langfile, lline);
9 + ltexts++;
10 + ctmp = strchr(ltext, '\n');
11 + *ctmp = 0;
12 + while (ltext[strlen(ltext) - 1] == '\\') {
13 + ltext[strlen(ltext) - 1] = 0;
14 + if (fgets(lbuf, 511, FLANG)) {
15 + lline++;
16 + ctmp = strchr(lbuf, '\n');
17 + *ctmp = 0;
18 + ltext = nrealloc(ltext, strlen(lbuf) + strlen(ltext) + 1);
19 + strcpy(strchr(ltext, 0), lbuf);
20 + }
21 + }
22 } else {
23 ltexts++;
24 ctmp = strchr(ltext, '\n');
25