Fixed a potential SIGSEGV by pointer offset -1. Detected by valgrind.
This commit is contained in:
parent
375fee85da
commit
cc6d2cd7e9
@ -304,7 +304,9 @@ cannot_open_dir:;
|
||||
name= disk_path+strlen(disk_path);
|
||||
if(Sfile_str(img_path, img_dir_path, 0)<=0)
|
||||
{ret= -1; goto ex;}
|
||||
if(img_path[0] || img_path[strlen(img_path)-1]!='/')
|
||||
if(img_path[0] == 0)
|
||||
strcat(img_path, "/");
|
||||
else if(img_path[strlen(img_path) - 1] != '/')
|
||||
strcat(img_path, "/");
|
||||
img_name= img_path+strlen(img_path);
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2010.10.04.155226"
|
||||
#define Xorriso_timestamP "2010.10.05.180016"
|
||||
|
Loading…
Reference in New Issue
Block a user