diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2013-09-24 12:05:31 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-09-24 12:05:31 -0400 |
| commit | 3816832bc5117670426cf291fc01d6ba5bef83d7 (patch) | |
| tree | dfe5dd965d2536dc578a364038e938e97d080996 | |
| parent | e2979f2c5fc302fcde557e1f1c16408e17be1b75 (diff) | |
| download | efi-boot-shim-3816832bc5117670426cf291fc01d6ba5bef83d7.tar.gz efi-boot-shim-3816832bc5117670426cf291fc01d6ba5bef83d7.zip | |
Fix an off-by-one error
We don't need to add one because our end pointer is already off the end of
the string we want to copy.
| -rw-r--r-- | netboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -251,7 +251,7 @@ static BOOLEAN extract_tftp_info(char *url) return FALSE; } memset(ip6str, 0, 128); - memcpy(ip6str, start, end + 1 - start); + memcpy(ip6str, start, end - start); end++; memcpy(&tftp_addr.v6, str2ip6(ip6str), 16); full_path = AllocateZeroPool(strlen(end)+strlen(template)+1); |
