Changeset 3510 for trunk/src/signer/dialog.c
- Timestamp:
- 05/05/08 15:00:01 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/signer/dialog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/signer/dialog.c
r3183 r3510 37 37 { 38 38 int r; 39 size_t len; 39 40 const char *argv[3]; 40 41 const char *pgmname = PIN_ENTRY; … … 79 80 goto err; 80 81 } 81 r= strlen(buf);82 if ( r< pinfo->min_length) {82 len = strlen(buf); 83 if (len < pinfo->min_length) { 83 84 sprintf(errtext, "PIN code too short, min. %lu digits", (unsigned long) pinfo->min_length); 84 85 continue; 85 86 } 86 if ( r> pinfo->max_length) {87 if (len > pinfo->max_length) { 87 88 sprintf(errtext, "PIN code too long, max. %lu digits", (unsigned long) pinfo->max_length); 88 89 continue;
