| ... | @@ -179,7 +179,7 @@ pub fn formatType( | ... | @@ -179,7 +179,7 @@ pub fn formatType( |
| 179 | }, | 179 | }, |
| 180 | builtin.TypeInfo.Pointer.Size.Many => { | 180 | builtin.TypeInfo.Pointer.Size.Many => { |
| 181 | if (ptr_info.child == u8) { | 181 | if (ptr_info.child == u8) { |
| 182 | if (fmt[0] == 's') { | 182 | if (fmt.len > 0 and fmt[0] == 's') { |
| 183 | const len = std.cstr.len(value); | 183 | const len = std.cstr.len(value); |
| 184 | return formatText(value[0..len], fmt, context, Errors, output); | 184 | return formatText(value[0..len], fmt, context, Errors, output); |
| 185 | } | 185 | } |