Browse Source

Fix missing nul

Jeremy Soller 6 years ago
parent
commit
dd65d0c0c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/header/getopt/mod.rs

+ 1 - 1
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;
                                     }
                                 }