OLD | NEW |
(Empty) | |
| 1 Index: mozilla/security/nss/lib/util/utilpars.c |
| 2 =================================================================== |
| 3 RCS file: /cvsroot/mozilla/security/nss/lib/util/utilpars.c,v |
| 4 retrieving revision 1.1 |
| 5 retrieving revision 1.3 |
| 6 diff -p -u -r1.1 -r1.3 |
| 7 --- mozilla/security/nss/lib/util/utilpars.c 26 Jun 2012 22:27:33 -0000
1.1 |
| 8 +++ mozilla/security/nss/lib/util/utilpars.c 25 Sep 2012 00:35:19 -0000
1.3 |
| 9 @@ -2,9 +2,9 @@ |
| 10 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 11 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 12 /* |
| 13 - * The following code handles the storage of PKCS 11 modules used by the |
| 14 + * The following code handles the storage of PKCS 11 modules used by the |
| 15 * NSS. This file is written to abstract away how the modules are |
| 16 - * stored so we can deside that later. |
| 17 + * stored so we can decide that later. |
| 18 */ |
| 19 #include "secport.h" |
| 20 #include "prprf.h" |
| 21 @@ -325,7 +325,7 @@ nssutil_escapeQuotesSize(const char *str |
| 22 if ((*src == quote) || (*src == '\\')) escapes++; |
| 23 size++; |
| 24 } |
| 25 - return size; |
| 26 + return size+escapes+1; |
| 27 |
| 28 } |
| 29 |
| 30 @@ -359,7 +359,7 @@ nssutil_escapeQuotes(const char *string, |
| 31 int |
| 32 NSSUTIL_EscapeSize(const char *string, char quote) |
| 33 { |
| 34 - return nssutil_escapeQuotesSize(string, quote, PR_TRUE); |
| 35 + return nssutil_escapeQuotesSize(string, quote, PR_FALSE); |
| 36 } |
| 37 |
| 38 char * |
OLD | NEW |