]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix typo
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 26 Nov 2010 05:57:28 +0000 (05:57 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 26 Nov 2010 05:57:28 +0000 (05:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10637 d7cf8633-e32d-0410-b094-e92efae38249

crypto-keygen-standalone.c

index 1df9d6418931d2aeaba92300729fa78f733fea50..be60446ad680654439352cdf95e8bfa641e4454f 100644 (file)
@@ -97,7 +97,7 @@ void file2buf(const char *fn, char **data, size_t *datasize)
        *data = NULL;
        *datasize = 0;
        size_t n = 0, dn = 0;
-       if(!strncmp(f, "/dev/fd/", 8))
+       if(!strncmp(fn, "/dev/fd/", 8))
                f = fdopen(atoi(fn + 8), "wb");
        else
                f = fopen(fn, "rb");
@@ -125,7 +125,7 @@ void file2buf(const char *fn, char **data, size_t *datasize)
 int buf2file(const char *fn, const char *data, size_t n)
 {
        FILE *f;
-       if(!strncmp(f, "/dev/fd/", 8))
+       if(!strncmp(fn, "/dev/fd/", 8))
                f = fdopen(atoi(fn + 8), "wb");
        else
                f = fopen(fn, "wb");