diff options
| author | 2004-11-25 18:46:29 +0000 | |
|---|---|---|
| committer | 2004-11-25 18:46:29 +0000 | |
| commit | 3de7e65109612eadb60dcb227b1a9fd2e18f6285 (patch) | |
| tree | 5d743ecdc10511496bcf422c9cef7cada0c48fca /src/main.c | |
| parent | improve reference documentation (diff) | |
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
Diffstat (limited to 'src/main.c')
| -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; } |
