From 20eebb9dd732dfc2a65da2b5ef1c145787c3be5c Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 10 Jul 2023 18:03:41 +0300 Subject: [PATCH] fix: strconv.v_sprintf is now [unsafe]; fix usage in src/nl/nl.v --- src/nl/nl.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nl/nl.v b/src/nl/nl.v index a42efb91..3eaa2591 100644 --- a/src/nl/nl.v +++ b/src/nl/nl.v @@ -116,7 +116,7 @@ fn nl(settings Settings, streams []os.File) { if skip { prefix = skip_prefix } else { - prefix = strconv.v_sprintf(f_lno, lineno) + prefix = unsafe { strconv.v_sprintf(f_lno, lineno) } //// Compile options, default is GNU-compatible behavior //// // In BSD, the upper digits are truncated in case of overflow.