[pve-devel] [PATCH v4 qemu] fix #1534: vma: Add extract filter for disk images
    Fiona Ebner 
    f.ebner at proxmox.com
       
    Wed Aug 30 09:16:26 CEST 2023
    
    
  
Am 29.08.23 um 14:10 schrieb Fiona Ebner:
> Am 09.08.23 um 16:08 schrieb Filip Schauer:
>> ++                    size_t token_len = comma - token;
>> ++                    if (token_len == devname_len && strncmp(token, di->devname, token_len) == 0) {
> 
> Passing devname_len to strncmp would avoid the token_len variable.
> 
Would need to be devname_len + 1, but since we want to compare the whole
string, especially once we got the null-terminated split tokens, we can
also just use strcmp().
    
    
More information about the pve-devel
mailing list