Changeset 396 for trunk/src/mappers/opensc_mapper.c
- Timestamp:
- 02/03/10 17:41:41 (2 years ago)
- File:
-
- 1 edited
-
trunk/src/mappers/opensc_mapper.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mappers/opensc_mapper.c
r358 r396 77 77 return -1; 78 78 #else 79 #ifndef PATH_MAX 80 /* PATH_MAX is not defined (unlimited) on Hurd */ 81 /* the correct solution would be to use a dynamic allocation */ 82 #define PATH_MAX 1024 83 #endif 79 84 char filename[PATH_MAX]; 80 85 X509 **certs; … … 86 91 if (!home) return -1; 87 92 88 snprintf(filename, PATH_MAX, "%s/.eid/authorized_certificates", home);93 snprintf(filename, sizeof(filename), "%s/.eid/authorized_certificates", home); 89 94 90 95 in = BIO_new(BIO_s_file());
Note: See TracChangeset
for help on using the changeset viewer.
