|
| From: | Fabrice Bellard |
| Subject: | Re: [Qemu-devel] [PATCH 1/2] Refactor und fix do_sendkey |
| Date: | Thu, 22 May 2008 16:49:01 +0200 |
| User-agent: | Thunderbird 2.0.0.5 (X11/20070727) |
Please avoid strncpy. Use pstrcpy intead. Fabrice. Jan Kiszka wrote:
Looking at the sendkey implementation, planning to enhance it with a hold time argument, I found some potential out-of-bound access and not very readable code. Here is a fix for the former and a (subjective) improvement of the latter. [...]
| [Prev in Thread] | Current Thread | [Next in Thread] |