From 44fea666336a902d9474f5389054b26d7e3b4e2a Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 26 Nov 2010 05:57:28 +0000 Subject: [PATCH] fix typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10637 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=b45ffeee1f5c2d7eaed3ec5af6ff87720b6db97e --- crypto-keygen-standalone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.2