Changeset 396


Ignore:
Timestamp:
02/03/10 17:41:41 (2 years ago)
Author:
ludovic.rousseau
Message:

opensc_mapper_match_certs(): PATH_MAX is not defined (unlimited) on Hurd
The correct solution would be to use a dynamic allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mappers/opensc_mapper.c

    r358 r396  
    7777        return -1; 
    7878#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 
    7984        char filename[PATH_MAX]; 
    8085        X509 **certs; 
     
    8691        if (!home) return -1; 
    8792 
    88         snprintf(filename, PATH_MAX, "%s/.eid/authorized_certificates", home); 
     93        snprintf(filename, sizeof(filename), "%s/.eid/authorized_certificates", home); 
    8994 
    9095        in = BIO_new(BIO_s_file()); 
Note: See TracChangeset for help on using the changeset viewer.