diff options
author | ddennedy <ddennedy@53a565d1-3bb7-0310-b661-cf11e63c67ab> | 2004-11-25 18:46:29 +0000 |
---|---|---|
committer | ddennedy <ddennedy@53a565d1-3bb7-0310-b661-cf11e63c67ab> | 2004-11-25 18:46:29 +0000 |
commit | 3de7e65109612eadb60dcb227b1a9fd2e18f6285 (patch) | |
tree | 5d743ecdc10511496bcf422c9cef7cada0c48fca | |
parent | 942638f8beb9d9ef7cf1f1f9d2199db3df4d6e57 (diff) | |
download | libraw1394-3de7e65109612eadb60dcb227b1a9fd2e18f6285.tar.gz |
apply patch from Matthias Hanel to fix uninitialized buffer and remove unncessary (and logically impossible) copy in get_port_info
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@151 53a565d1-3bb7-0310-b661-cf11e63c67ab
-rw-r--r-- | src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -104,6 +104,7 @@ static unsigned int init_rawdevice(struct raw1394_handle *h) errno = 0; return -1; } + memset(h->buffer, 0, HBUF_SIZE); return req.generation; } @@ -220,12 +221,6 @@ int raw1394_get_port_info(struct raw1394_handle *handle, return -1; } - for (num = req.misc, khl = (struct raw1394_khost_list *) int2ptr(req.recvb); - num && maxports; num--, maxports--, pinf++, khl++) { - pinf->nodes = khl->nodes; - strcpy(pinf->name, khl->name); - } - return req.misc; } |