Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sprintf problem under openbsd #2403

Closed
vicuna opened this issue Apr 2, 2004 · 2 comments
Closed

sprintf problem under openbsd #2403

vicuna opened this issue Apr 2, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 2, 2004

Original bug ID: 2403
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

$ cat test.mli
open Unix;;
$ ocamlc -verbose unix.cma test.mli

  • gcc -o 'a.out' -I'/usr/local/lib/ocaml' /tmp/camlprim14c35f.c '-L/usr/local/lib/ocaml' '-lunix' -lcamlrun -lm -lcurses -pthread
    /usr/local/lib/ocaml/libcamlrun.a(printexc.o): In function `format_caml_exception':
    printexc.o(.text+0x16c): warning: sprintf() is often misused, please use snprintf()
    $
@vicuna
Copy link
Author

vicuna commented Apr 13, 2004

Comment author: administrator

/usr/local/lib/ocaml/libcamlrun.a(printexc.o): In function
`format_caml_exception':
printexc.o(.text+0x16c): warning: sprintf() is often misused, please use
snprintf()

BSD is being overly cautious here, our use of sprintf is perfectly safe.
You can ignore this warning from the BSD linker.

-- Damien

@vicuna
Copy link
Author

vicuna commented Apr 13, 2004

Comment author: administrator

spurious warning from BSD (from ld?)
not a bug DD 2004-04-13

@vicuna vicuna closed this as completed Apr 13, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant