On 09/12/2010 10:02, Luca Ottaviano wrote:

Nitpicking comment: you should also add

buf[buf_size - 1] = '\0';

before the end of the function, as snprintf() doesn't guarantee that if
you print more than buf_size chars.

Regards,

True, i will look at a solution that fixes the issue throughout openocd as it happens in quite a few places.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to