aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Paland <marco@paland.com>2018-06-05 11:41:45 +0200
committerMarco Paland <marco@paland.com>2018-06-05 11:41:45 +0200
commit23d0687aab9a7e009e8a485baf79f4ba9295995b (patch)
treeff368547780e5952f8e0a3d16014962ba6f6c0d0
parenta50f1a8369c909a835a21d54d3facfb4a628205f (diff)
downloadprintf-23d0687aab9a7e009e8a485baf79f4ba9295995b.tar.gz
printf-23d0687aab9a7e009e8a485baf79f4ba9295995b.tar.bz2
printf-23d0687aab9a7e009e8a485baf79f4ba9295995b.zip
fix(printf): fix argument name in output function wrapper
-rw-r--r--printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printf.c b/printf.c
index 01021a0..e8c0720 100644
--- a/printf.c
+++ b/printf.c
@@ -113,7 +113,7 @@ static inline void _out_fct(char character, char* buffer, size_t idx, size_t max
{
(void)idx; (void)maxlen;
// buffer is the output fct pointer
- ((out_fct_wrap_type*)buffer)->fct(character, ((out_fct_wrap_type*)buffer)->user);
+ ((out_fct_wrap_type*)buffer)->fct(character, ((out_fct_wrap_type*)buffer)->arg);
}