Esme Povirk (@madewokherd) commented about dlls/sane.ds/capability.c:
if (twCC == TWCC_SUCCESS) { if (reload) get_sane_params(&activeDS.frame_params);
} return twCC;break; }
}
+static TW_UINT16 find_value_pos(const char* value, const char* values, TW_UINT16 buf_len, TW_UINT16 buf_count) +{
- TW_UINT16 index;
- for (index=0; index<buf_count; ++index)
- {
if (!strcmp(value, values))
return index;
value += buf_len;
This doesn't seem right. I would expect that `value` is what we're searching for, and `values` should be modified.