Loading...
--- xnu/xnu-2050.22.13/libkern/c++/OSSerialize.cpp
+++ xnu/xnu-792.22.5/libkern/c++/OSSerialize.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
@@ -79,7 +79,6 @@
// look it up
tagString = (OSString *)tags->getObject((const OSSymbol *) o);
-// xx-review: no error checking here for addString calls!
// does it exist?
if (tagString) {
addString("<reference IDREF=\"");
@@ -89,7 +88,7 @@
}
// build a tag
- snprintf(temp, sizeof(temp), "%u", tag++);
+ sprintf(temp, "%u", tag++);
tagString = OSString::withCString(temp);
// add to tag dictionary