On 12:11 27 Sep 2002, Jianping Zhu <[EMAIL PROTECTED]> wrote: | I have project (in c) which run good on sun unix. I want to let it run in | redhat | 7.2 linux. but when i try to compile i got error message like following [...] | -L/usr/openwin/lib -lX11 | datent.o: In function `datent_': | datent.o(.text+0xd1): the `gets' function is dangerous and should not be | used.
Firstly, find the called to gets() and replace it with a sane call to fgets(). Gets() does NO bounds checking and is an instant opportunity to have your code broken into. | /usr/bin/ld: cannot find -lX11 You need to change this: -L/usr/openwin/lib into -L/usr/X11R6/lib Cheers, -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ network security: 1. Kill all your users. 2. Remove all accounts. 3. Detach network and dialups. 4. Turn off machine. - David A. Guidry <[EMAIL PROTECTED]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list