]> git.jsancho.org Git - lugaru.git/commitdiff
Fix failure to create 'Users' file
authorAlexander Monakov <amonakov@gmail.com>
Sun, 12 Dec 2010 10:28:25 +0000 (13:28 +0300)
committerAlexander Monakov <amonakov@gmail.com>
Sun, 12 Dec 2010 10:28:25 +0000 (13:28 +0300)
Source/Account.cpp

index 90b585a38b4f20f4a99a911a5c865fcc58a9a6fc..d601c4ac64a4ded51ea548d0c95a611fd7120cc1 100644 (file)
@@ -169,7 +169,7 @@ void Account::saveFile(string filename, Account* accountactive) {
        int numaccounts;
        int j;
        
-       tfile=fopen(ConvertFileName(filename.c_str()), "wb" );
+       tfile=fopen(ConvertFileName(filename.c_str(), "wb"), "wb" );
        if(tfile)
        {
                printf("writing %d accounts :\n",getNbAccounts());