1017
|
1 |
diff -ur fortune-mod-1.99.1/fortune/fortune.c fortune-mod-1.99.1.mod/fortune/fortune.c
|
|
2 |
--- fortune-mod-1.99.1/fortune/fortune.c 2004-03-05 18:59:56.000000000 +0530
|
|
3 |
+++ fortune-mod-1.99.1.mod/fortune/fortune.c 2008-03-31 18:46:19.321411981 +0530
|
|
4 |
@@ -1627,13 +1627,16 @@
|
|
5 |
}
|
|
6 |
}
|
|
7 |
if(fp->utf8_charset) {
|
|
8 |
- char *output;
|
|
9 |
+ char *output = NULL;
|
|
10 |
output = recode_string (request, line);
|
|
11 |
- fputs(output, stdout);
|
|
12 |
+ if (output)
|
|
13 |
+ fputs(line,stdout);
|
|
14 |
free(output);
|
|
15 |
}
|
|
16 |
else
|
|
17 |
- fputs(line, stdout);
|
|
18 |
+ {
|
|
19 |
+ fprintf (stdout, line);
|
|
20 |
+ }
|
|
21 |
}
|
|
22 |
fflush(stdout);
|
|
23 |
|