From dd65d0c0c8415eb031a247635f5317a903821fc0 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Fri, 16 Nov 2018 20:37:37 -0700 Subject: [PATCH] Fix missing nul --- src/header/getopt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/getopt/mod.rs b/src/header/getopt/mod.rs index 5f580381..66a258f2 100644 --- a/src/header/getopt/mod.rs +++ b/src/header/getopt/mod.rs @@ -88,7 +88,7 @@ pub unsafe extern "C" fn getopt_long( stdio::fputs(*argv as _, &mut *stdio::stderr); stdio::fputs(": option '--\0".as_ptr() as _, &mut *stdio::stderr); stdio::fputs(current_arg, &mut *stdio::stderr); - stdio::fputs("' requires an argument\n".as_ptr() as _, &mut *stdio::stderr); + stdio::fputs("' requires an argument\n\0".as_ptr() as _, &mut *stdio::stderr); return b'?' as c_int; } } -- GitLab