Bug 800220 - Part 1. Replace PL_strlen with strlen. r=ehsan

This commit is contained in:
Makoto Kato
2013-05-08 12:40:12 +09:00
parent 8231059d41
commit efb7bf25b2
25 changed files with 40 additions and 40 deletions

View File

@@ -61,7 +61,7 @@ static void SearchForSoname(const char* name, char** soname)
if (!fdDir)
return;
int n = PL_strlen(name);
int n = strlen(name);
PRDirEntry *dirEntry;
while ((dirEntry = PR_ReadDir(fdDir, PR_SKIP_BOTH))) {
if (!PL_strncmp(dirEntry->name, name, n)) {
@@ -175,7 +175,7 @@ static void LoadExtraSharedLibs()
//construct soname's list to save in prefs
p = soname ? soname : arrayOfLibs[i];
int n = PLUGIN_MAX_LEN_OF_TMP_ARR -
(PL_strlen(sonameListToSave) + PL_strlen(p));
(strlen(sonameListToSave) + strlen(p));
if (n > 0) {
PL_strcat(sonameListToSave, p);
PL_strcat(sonameListToSave,":");
@@ -184,13 +184,13 @@ static void LoadExtraSharedLibs()
PL_strfree(soname); // it's from strdup
}
if (numOfLibs > 1)
arrayOfLibs[i][PL_strlen(arrayOfLibs[i])] = ':'; //restore ":" in sonameList
arrayOfLibs[i][strlen(arrayOfLibs[i])] = ':'; //restore ":" in sonameList
}
}
// Check whether sonameListToSave is a empty String, Bug: 329205
if (sonameListToSave[0])
for (p = &sonameListToSave[PL_strlen(sonameListToSave) - 1]; *p == ':'; p--)
for (p = &sonameListToSave[strlen(sonameListToSave) - 1]; *p == ':'; p--)
*p = 0; //delete tail ":" delimiters
if (!prefSonameListIsSet || PL_strcmp(sonameList, sonameListToSave)) {