Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 297361 | Differences between
and this patch

Collapse All | Expand All

(-)cdda-0.1.0.orig/cdda_cddb.c (-1 / +2 lines)
Lines 58-64 Link Here
58
58
59
    sscanf(key, "%a[^\n0-9]%d", &p_key, &track);
59
    sscanf(key, "%a[^\n0-9]%d", &p_key, &track);
60
60
61
    char *p_value1 = NULL, *p_value2 = NULL, *p_idx = index(value, '/');
61
    char *p_value1 = NULL, *p_value2 = NULL;
62
    const char *p_idx = index(value, '/');
62
    if (NULL != p_idx && 0x20 == *(p_idx-1) && 0x20 == *(p_idx+1) && 0x00 != *(p_idx+2))
63
    if (NULL != p_idx && 0x20 == *(p_idx-1) && 0x20 == *(p_idx+1) && 0x00 != *(p_idx+2))
63
      sscanf(value, "%a[^/] / %a[^/]", &p_value1, &p_value2);
64
      sscanf(value, "%a[^/] / %a[^/]", &p_value1, &p_value2);
64
    else
65
    else

Return to bug 297361