diff options
author | Steve Hay <SteveHay@planit.com> | 2006-07-11 11:26:17 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2006-07-11 11:26:17 +0000 |
commit | 9e4425f7401960922972922c0fbf30ed45522d5e (patch) | |
tree | 041a4e864f63674476aaf0909005673aa41ba3dd /util.c | |
parent | 4f59a6b1d76c1ef7fec4957ed0a8c42d401ce295 (diff) | |
download | perl-9e4425f7401960922972922c0fbf30ed45522d5e.tar.gz |
Fix change #28533: my_strlcpy does not return the dest str!
p4raw-link: @28533 on //depot/perl: 6fca0082ec4f3b34a0dabc78331bad8c22489dd2
p4raw-id: //depot/perl@28545
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3054,7 +3054,8 @@ Perl_find_script(pTHX_ const char *scriptname, bool dosearch, len = strlen(scriptname); if (len+MAX_EXT_LEN+1 >= sizeof(tmpbuf)) break; - cur = my_strlcpy(tmpbuf, scriptname, sizeof(tmpbuf)); + my_strlcpy(tmpbuf, scriptname, sizeof(tmpbuf)); + cur = tmpbuf; } } while (extidx >= 0 && ext[extidx] /* try an extension? */ && my_strlcpy(tmpbuf+len, ext[extidx++], sizeof(tmpbuf) - len)); |