From: divverent Date: Fri, 26 Nov 2010 05:57:28 +0000 (+0000) Subject: fix typo X-Git-Tag: xonotic-v0.1.0preview~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44fea666336a902d9474f5389054b26d7e3b4e2a;p=xonotic%2Fdarkplaces.git fix typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10637 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=b45ffeee1f5c2d7eaed3ec5af6ff87720b6db97e --- diff --git a/crypto-keygen-standalone.c b/crypto-keygen-standalone.c index 1df9d641..be60446a 100644 --- a/crypto-keygen-standalone.c +++ b/crypto-keygen-standalone.c @@ -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");