Why does su source code of Android call strcpy() after strdup()? Is this duplicated?

时间:2016-04-25 09:14:08

标签: android

The "su" source code snippet is shown as below:

void extract_uidgids() {
    ......
    clobberablegids = strdup(uidgids);
    strcpy(clobberablegids, uidgids);
    ......
}

why is strcpy() called after strdup()?

Thanks.

0 个答案:

没有答案