Mercurial > hg > dmlib
diff xm2jss.c @ 84:35db15881923
Oops, another fix for dmf_create_stdio() changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2012 10:23:29 +0300 |
parents | c42ee907de9c |
children | 7108681151a4 |
line wrap: on
line diff
--- a/xm2jss.c Tue Oct 02 09:57:38 2012 +0300 +++ b/xm2jss.c Tue Oct 02 10:23:29 2012 +0300 @@ -902,10 +902,10 @@ if (srcFilename == NULL) sfile = dmf_create_stdio_stream(stdin); else - if ((sfile = dmf_create_stdio(srcFilename)) == NULL) + if ((sfile = dmf_create_stdio(srcFilename, "rb")) == NULL) { - dmError("Error opening input file '%s'. (%s)\n", - srcFilename, strerror(errno)); + dmError("Error opening input file '%s', %d: %s\n", + srcFilename, errno, strerror(errno)); return 1; }