summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-11-08 21:37:52 +0000
committerNicholas Clark <nick@ccl4.org>2005-11-08 21:37:52 +0000
commit42d9b98d3f03094883cfc4bb765785a6d4396077 (patch)
treecb639739736f31b4c4068d5e3c9eb09b306d89fd /util.c
parentf7997f866fdcafc687fbaa99dbeb48f109b2e8d8 (diff)
downloadperl-42d9b98d3f03094883cfc4bb765785a6d4396077.tar.gz
Eliminate some unnecessary strlen()s
p4raw-id: //depot/perl@26050
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index b558f7a121..4b115d28c8 100644
--- a/util.c
+++ b/util.c
@@ -3759,7 +3759,7 @@ Perl_getcwd_sv(pTHX_ register SV *sv)
* size from the heap if they are given a NULL buffer pointer.
* The problem is that this behaviour is not portable. */
if (getcwd(buf, sizeof(buf) - 1)) {
- sv_setpvn(sv, buf, strlen(buf));
+ sv_setpv(sv, buf);
return TRUE;
}
else {