Re: strlcpy & pointers

2023-10-25 Thread Stuart Henderson
On 2023-10-25, Maria Morisot wrote: > I opened xenocara/lib/libX11/src/xlibi18n/lcPrTxt.c and strcpy operates on a > buffer passed in through a pointer, so I don't think there's a way to > calculate the buffer length. I'm not very good at C, so I don't know what to > do here. Do I just leave

strlcpy & pointers

2023-10-25 Thread Maria Morisot
I opened xenocara/lib/libX11/src/xlibi18n/lcPrTxt.c and strcpy operates on a buffer passed in through a pointer, so I don't think there's a way to calculate the buffer length. I'm not very good at C, so I don't know what to do here. Do I just leave strcpy in place or does the calling code need