Revision 9b8114a8
b/block-vmdk.c | ||
---|---|---|
344 | 344 |
if ((end_name - p_name) > sizeof (s->hd->backing_file) - 1) |
345 | 345 |
return -1; |
346 | 346 |
|
347 |
pstrcpy(s->hd->backing_file, end_name - p_name, p_name); |
|
347 |
pstrcpy(s->hd->backing_file, end_name - p_name + 1, p_name);
|
|
348 | 348 |
if (stat(s->hd->backing_file, &file_buf) != 0) { |
349 | 349 |
path_combine(parent_img_name, sizeof(parent_img_name), |
350 | 350 |
filename, s->hd->backing_file); |
Also available in: Unified diff