summaryrefslogtreecommitdiff
path: root/printutils
diff options
context:
space:
mode:
Diffstat (limited to 'printutils')
-rw-r--r--printutils/lpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printutils/lpd.c b/printutils/lpd.c
index 642e8a8..eaf42c0 100644
--- a/printutils/lpd.c
+++ b/printutils/lpd.c
@@ -204,7 +204,7 @@ int lpd_main(int argc UNUSED_PARAM, char *argv[])
goto err_exit;
}
// get filename
- *strchrnul(s, '\n') = '\0';
+ chomp(s);
fname = strchr(s, ' ');
if (!fname) {
// bad_fname: