Skip to content

Commit a33d091

Browse files
committed
perlapi: Use "NUL terminated" instead of 'null'
1 parent 8b0fd01 commit a33d091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10219,7 +10219,7 @@ C<strlen()>, (which means if you use this option, that C<s> can't have embedded
1021910219
C<NUL> characters and has to have a terminating C<NUL> byte).
1022010220

1022110221
This function can cause reliability issues if you are likely to pass in
10222-
empty strings that are not null terminated, because it will run
10222+
empty strings that are not NUL terminated, because it will run
1022310223
strlen on the string and potentially run past valid memory.
1022410224

1022510225
Using L</newSVpvn> is a safer alternative for non C<NUL> terminated strings.

0 commit comments

Comments
 (0)