mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Fixed silly repeated calls to strlen()
This commit is contained in:
parent
03b4ace443
commit
fe176fc01b
@ -448,9 +448,10 @@ static int system_property_get(const char *name, char *value)
|
||||
{
|
||||
if (fgets(buffer, 128, pipe) != NULL)
|
||||
{
|
||||
memcpy(curpos, buffer, strlen(buffer));
|
||||
curpos += strlen(buffer);
|
||||
length += strlen(buffer);
|
||||
int curlen = strlen(buffer);
|
||||
memcpy(curpos, buffer, curlen);
|
||||
curpos += curlen;
|
||||
length += curlen;
|
||||
}
|
||||
}
|
||||
*curpos = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user