Hi there,
While testing XFS dmapi functions with a CVS kernel which is
compiled several weeks ago,
linux-2.4-xfs/cmd/xfstests/dmapi/src/sample_hsm/migout dumped
core, so I made a patch as follows:
--- migout.c 2001/03/07 22:43:23 1.2
+++ migout.c 2001/09/28 09:25:55
@@ -469,6 +469,7 @@
char *cp, *start;
size_t len;
char *hanp;
+ char *hanpp=NULL;
/*
* Skip any leading white space, and check the length
@@ -505,8 +506,8 @@
cp += len*2;
*cp = '\0';
- atohan( hanp, (void**)&handle_buf, &len );
-
+ atohan( hanp, (void**)&hanpp, &len );
+ memcpy( handle_buf, hanpp, len);
/* skip over white space */
while (!isalnum(*cp))
It works for me, but could anybody on the list check this patch?
Cheers,
Takayuki
|