mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Changing C++ comments to C comments. Please do not put C++ comments in C files, since it breaks some compilers. r=jst
This commit is contained in:
parent
77fff625c9
commit
f2899e13e7
@ -879,8 +879,9 @@ pref_saveLIPref(PLHashEntry *he, int i, void *arg)
|
||||
{
|
||||
char *tmp_str = str_escape(pref->userPref.stringVal);
|
||||
|
||||
//Error checks to be sure length not too long.
|
||||
//18 refers to the number of characters in the "user_pref..." string.
|
||||
/* Error checks to be sure length not too long.
|
||||
18 refers to the number of characters in the "user_pref..."
|
||||
string. */
|
||||
if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048)
|
||||
return PREF_BAD_PARAMETER;
|
||||
|
||||
@ -955,8 +956,9 @@ pref_savePref(PLHashEntry *he, int i, void *arg)
|
||||
{
|
||||
char *tmp_str = str_escape(pref->userPref.stringVal);
|
||||
|
||||
//Error checks to be sure length not too long.
|
||||
//18 refers to the number of characters in the "user_pref..." string.
|
||||
/* Error checks to be sure length not too long.
|
||||
18 refers to the number of characters in the "user_pref..."
|
||||
string. */
|
||||
if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048)
|
||||
return PREF_BAD_PARAMETER;
|
||||
|
||||
|
@ -879,8 +879,9 @@ pref_saveLIPref(PLHashEntry *he, int i, void *arg)
|
||||
{
|
||||
char *tmp_str = str_escape(pref->userPref.stringVal);
|
||||
|
||||
//Error checks to be sure length not too long.
|
||||
//18 refers to the number of characters in the "user_pref..." string.
|
||||
/* Error checks to be sure length not too long.
|
||||
18 refers to the number of characters in the "user_pref..."
|
||||
string. */
|
||||
if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048)
|
||||
return PREF_BAD_PARAMETER;
|
||||
|
||||
@ -955,8 +956,9 @@ pref_savePref(PLHashEntry *he, int i, void *arg)
|
||||
{
|
||||
char *tmp_str = str_escape(pref->userPref.stringVal);
|
||||
|
||||
//Error checks to be sure length not too long.
|
||||
//18 refers to the number of characters in the "user_pref..." string.
|
||||
/* Error checks to be sure length not too long.
|
||||
18 refers to the number of characters in the "user_pref..."
|
||||
string. */
|
||||
if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048)
|
||||
return PREF_BAD_PARAMETER;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user