[libvirt] [PATCH v3 04/11] Helper functions for host TPM support

Stefan Berger stefanb at linux.vnet.ibm.com
Tue Apr 2 10:23:55 UTC 2013


On 04/01/2013 04:07 PM, Corey Bryant wrote:
>
>
> On 03/21/2013 11:42 AM, Stefan Berger wrote:
>> Signed-off-by: Stefan Berger<stefanb at linux.vnet.ibm.com>
>>
>> +
>> +char *
>> +virTPMFindCancelPath(void)
>> +{
>> +    unsigned int idx;
>> +    int len;
>> +    DIR *pnp_dir;
>> +    char path[100], *p;
>
> Is there any reason not to use PATH_MAX instead of 100 here?

You get a compiler error then due to the function using too much space 
on the stack.

    Stefan




More information about the libvir-list mailing list