]> Pileus Git - aweather/blobdiff - src/wsr88ddec.c
Support setting an initial time with -t
[aweather] / src / wsr88ddec.c
index 3771ba6d098a6265105d4172df5e467997b4584a..71fc432369e56737077ed9f3a53b3efe9db9908f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -67,8 +67,8 @@ int main(int argc, char **argv)
                return 0;
        }
 
-       FILE *input  = fopen(argv[1], "r");
-       FILE *output = fopen(argv[2], "w+");
+       FILE *input  = fopen(argv[1], "rb");
+       FILE *output = fopen(argv[2], "wb+");
        if (!input)  g_error("error opening input");
        if (!output) g_error("error opening output");