|
From: SVN U. <dde...@li...> - 2004-11-25 18:46:34
|
Author: ddennedy
Date: 2004-11-25 13:46:29 -0500 (Thu, 25 Nov 2004)
New Revision: 151
Modified:
trunk/src/main.c
Log:
apply patch from Matthias Hanel to fix uninitialized buffer and remove unncessary (and logically impossible) copy in get_port_info
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2004-11-25 18:01:57 UTC (rev 150)
+++ trunk/src/main.c 2004-11-25 18:46:29 UTC (rev 151)
@@ -104,6 +104,7 @@
errno = 0;
return -1;
}
+ memset(h->buffer, 0, HBUF_SIZE);
return req.generation;
}
@@ -220,12 +221,6 @@
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;
}
|