Commit 00abdf4a authored by Martin Dørum's avatar Martin Dørum
Browse files

fix yet another minor bug in the example tar code

parent 6400c1fe
......@@ -309,7 +309,7 @@ void read_path(char dest[257], char path[100], char prefix[100]) {
}
// If there is a prefix, the path is: <prefix> '/' <path>
size_t prefix_len = strnlen(prefix, 100);
size_t prefix_len = strnlen(prefix, 155);
memcpy(dest, prefix, prefix_len);
dest[prefix_len] = '/';
memcpy(&dest[prefix_len + 1], path, 100);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment