27.12.2025 22:27, Klemens Nanni пишет:
> Feedback? OK?  For Alf's fix and/or new regress?

Both got committed, thanks for the report.

> 
> Index: sysctl.c
> ===================================================================
> RCS file: /cvs/src/sbin/sysctl/sysctl.c,v
> diff -u -p -r1.268 sysctl.c
> --- sysctl.c  6 Aug 2025 16:50:53 -0000       1.268
> +++ sysctl.c  27 Dec 2025 17:11:08 -0000
> @@ -295,7 +295,7 @@ main(int argc, char *argv[])
>  
>               while (getline(&line, &sz, fp) != -1) {
>                       lp = line + strspn(line, " \t");
> -                     line[strcspn(line, " \t\n#")] = '\0';
> +                     lp[strcspn(lp, " \t\n#")] = '\0';
>  
>                       if (lp[0] != '\0')
>                               parse(line, 1);

Reply via email to