On Friday, November 12, 2010, Lars Ellenberg wrote:
> >     }
> >     cl_log(LOG_INFO, "setting entity to %s", option);
> > 
> > -   strncpy(logd_config.entity, option, MAXLINE);
> > +   strncpy(logd_config.entity, option, MAXENTITY);
> 
> Do we need an
>       entity[MAXENTITY-1] = '\0';
> just in case?

Oh right, unlike snprintf(), strncpy might not terminate the string. I will 
fix it.


Thanks,
Bernd

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to