diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:36:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:36:24 +0000 |
commit | 70b504a538a28806b350b2f30df5263a55ade5cd (patch) | |
tree | 4c0576c52fea896eba46b5f19f79c6f3c78b7f4d /libc/stdio | |
parent | a39e7a9e5e661e49f29789c30f4ce2ca8a007499 (diff) |
Be really sneaky and use GNU ld special stuff so that whenever folks
use the unsafe gets, they will get a warning from the linker. muahahaha.
This method will soon be applied to fork() w/o an mmu etc...
-Erik
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/stdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c index 954318d39..a7dd8a3ba 100644 --- a/libc/stdio/stdio.c +++ b/libc/stdio/stdio.c @@ -314,6 +314,7 @@ char *fgets(char *s, int count, FILE *fp) #endif #ifdef L_gets +link_warning (gets, "the `gets' function is dangerous and should not be used.") char *gets(char *str) /* This is an UNSAFE function! */ { /* |