aboutsummaryrefslogtreecommitdiff
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorStefan Hoffmann <stefan991@gmail.com>2014-03-06 23:53:15 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-13 17:18:44 -0300
commitad77ff53d3ad5f1c4fdf2938bab2c9999df2c82b (patch)
tree5aa808ca8b97281545f2c4a1e191f3c914e24b7a /src/hardcopy.c
parentce31410c7953a19421a2f2df2d3e6654601da930 (diff)
downloadrneovim-ad77ff53d3ad5f1c4fdf2938bab2c9999df2c82b.tar.gz
rneovim-ad77ff53d3ad5f1c4fdf2938bab2c9999df2c82b.tar.bz2
rneovim-ad77ff53d3ad5f1c4fdf2938bab2c9999df2c82b.zip
removed get_user_name() and replaced calls with mch_get_user_name()
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 34435c4791..1237230f0a 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -31,6 +31,7 @@
#include "syntax.h"
#include "term.h"
#include "ui.h"
+#include "os/os.h"
/*
* To implement printing on a platform, the following functions must be
@@ -2500,8 +2501,9 @@ int mch_print_begin(prt_settings_T *psettings)
*/
prt_dsc_start();
prt_dsc_textline("Title", (char *)psettings->jobname);
- if (!get_user_name((char_u *)buffer, 256))
+ if (mch_get_user_name(buffer, 256) == FAIL) {
STRCPY(buffer, "Unknown");
+ }
prt_dsc_textline("For", buffer);
prt_dsc_textline("Creator", VIM_VERSION_LONG);
/* Note: to ensure Clean8bit I don't think we can use LC_TIME */