Changing C++ comments to C comments. Please do not put C++ comments in C files, since it breaks some compilers. r=jst
git-svn-id: svn://10.0.0.236/trunk@76684 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user