Commit a79af843 authored by Mike Hibler's avatar Mike Hibler
Browse files

Revenge of the Delta Images.

Can't live with em, can't kill em dead... When writing my hack
routine to convert an image path into an imageid, I failed to
consider the .ddz (delta image) suffix.
parent eadcb03c
......@@ -746,11 +746,11 @@ extract_imageid(char *opath)
}
}
/* blah: <imageid>.ndz[:<version>] */
/* blah: <imageid>.{ddz,ndz}[:<version>] */
if (blah) {
imageid = blah;
vers = strstr(blah, ".ndz");
if (vers) {
if ((vers = strstr(blah, ".ndz")) != NULL ||
(vers = strstr(blah, ".ddz")) != NULL) {
vers[0] = '\0';
vers += 4;
}
......
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