Hi guys, 
When compiling Vim on obsd, the linker always complains:
>  objects/netbeans.o(.text+0x3f00): In function `coloncmd':
>  /home/dasn/pool/src/vim7/src/netbeans.c:2588: warning: vsprintf() is often 
> misused, please use vsnprintf()
>  /usr/local/lib/libpython2.6.so.1.0: warning: tmpnam() possibly used 
> unsafely; consider using mkstemp()
>  /usr/local/lib/libpython2.6.so.1.0: warning: tempnam() possibly used 
> unsafely; consider using mkstemp()
>  objects/buffer.o(.text+0xef5): In function `do_bufdel':
>  /home/dasn/pool/src/vim7/src/buffer.c:879: warning: strcpy() is almost 
> always misused, please use strlcpy()
>  objects/buffer.o(.text+0x4393): In function `maketitle':
>  /home/dasn/pool/src/vim7/src/buffer.c:3172: warning: strcat() is almost 
> always misused, please use strlcat()
>  objects/eval.o(.text+0x18f8): In function `list_buf_vars':
>  /home/dasn/pool/src/vim7/src/eval.c:2063: warning: sprintf() is often 
> misused, please use snprintf()
>  link.sh: Linked fine with a few libraries removed
>  cd xxd; CC="gcc" CFLAGS="-I/usr/local/include -Wall -pipe -g"  make -f 
> Makefile
>  gcc -Wall -pipe   -DUNIX -o xxd xxd.c
>  /tmp//ccvImOKT.o(.text+0x4cd): In function `xxdline':
>  : warning: strcpy() is almost always misused, please use strlcpy()
>  /tmp//ccvImOKT.o(.text+0x16c4): In function `main':
>  : warning: sprintf() is often misused, please use snprintf()

I know those are very common warnings when making applications (I mean
ports) on obsd. But, since I think Bram considers warnings seriously, I
decide to report it. Any comments?  :)

-- 
Dasn


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui