37eeb9c sd-device: use memdupa_suffix0() where appropriate

Authored and Committed by zbyszek 3 years ago
    sd-device: use memdupa_suffix0() where appropriate
    
    No functional change intended.
    
    (cherry picked from commit 3e2d0c6ab2abc0ab85440580931b2462bb73cfda)