2
0
forked from Ivasoft/DSView

fix:demo logic can not load protocol file in windows

This commit is contained in:
yunyaobaihong
2023-05-31 15:21:42 +08:00
parent f15946f577
commit e832b190a8

View File

@@ -522,7 +522,7 @@ static int reset_dsl_path(struct sr_dev_inst *sdi,uint8_t device_mode ,uint8_t p
char *str = g_try_malloc0(500);
strcpy(str,DS_RES_PATH);
memset(dir_str+strlen(dir_str)-strlen("res/"),0,strlen("res/"));
memset(str+strlen(str)-strlen("res/"),0,strlen("res/"));
strcat(str,"demo/");
if (pattern_mode != PATTERN_RANDOM)