Mercurial > vim
comparison src/netbeans.c @ 2768:c5e47b752f07 v7.3.160
updated for version 7.3.160
Problem: Unsafe string copying.
Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead
of strcat().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 11 Apr 2011 16:56:35 +0200 |
parents | 7f937a04cdba |
children | 25672ad7f377 |
comparison
equal
deleted
inserted
replaced
2767:9d6d058f0ebb | 2768:c5e47b752f07 |
---|---|
3912 msg_scrolled_ign = FALSE; | 3912 msg_scrolled_ign = FALSE; |
3913 /* add_to_input_buf((char_u *)"\f", 1); */ | 3913 /* add_to_input_buf((char_u *)"\f", 1); */ |
3914 } | 3914 } |
3915 else | 3915 else |
3916 { | 3916 { |
3917 char_u ebuf[BUFSIZ]; | 3917 char_u msgbuf[IOSIZE]; |
3918 | 3918 |
3919 STRCPY(ebuf, (char_u *)_("E505: ")); | 3919 vim_snprintf((char *)msgbuf, IOSIZE, |
3920 STRCAT(ebuf, IObuff); | 3920 _("E505: %s is read-only (add ! to override)"), IObuff); |
3921 STRCAT(ebuf, (char_u *)_("is read-only (add ! to override)")); | 3921 nbdebug((" %s\n", msgbuf)); |
3922 STRCPY(IObuff, ebuf); | 3922 emsg(msgbuf); |
3923 nbdebug((" %s\n", ebuf )); | |
3924 emsg(IObuff); | |
3925 } | 3923 } |
3926 } | 3924 } |
3927 | 3925 |
3928 #endif /* defined(FEAT_NETBEANS_INTG) */ | 3926 #endif /* defined(FEAT_NETBEANS_INTG) */ |