summaryrefslogtreecommitdiff
path: root/lang/langcomp.c
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-10 23:52:45 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-10 23:52:45 +0000
commiteece3847bfed4e3bac99df0f5f511ee7ecbedd45 (patch)
treedd3754a0c5e73a40eee8b007c36fdd26a1282ec5 /lang/langcomp.c
parent3bba983a6100e2d698660d5aa0d12a1c0c1ab2b0 (diff)
BUILD : 1.7.3 (186) BUGS : NOTES : Added langtool.c and modified some langcomp.c stuff in behalf of codemastr (win32 port)
git-svn-id: svn://svn.anope.org/anope/trunk@186 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@131 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'lang/langcomp.c')
-rw-r--r--lang/langcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/langcomp.c b/lang/langcomp.c
index 8392fbd5b..791e23f93 100644
--- a/lang/langcomp.c
+++ b/lang/langcomp.c
@@ -61,7 +61,7 @@ int read_index_file()
char buf[256];
int i;
- if (!(f = fopen("index", "r"))) {
+ if (!(f = fopen("index", "rb"))) {
perror("fopen(index)");
return -1;
}
@@ -177,11 +177,11 @@ int main(int ac, char **av)
if (read_index_file() < 0)
return 1;
- if (!(in = fopen(filename, "r"))) {
+ if (!(in = fopen(filename, "rb"))) {
perror(filename);
return 1;
}
- if (!(out = fopen(outfile, "w"))) {
+ if (!(out = fopen(outfile, "wb"))) {
perror(outfile);
return 1;
}