--- a/src/tpm_mgmt/tpm_nvwrite.c
+++ b/src/tpm_mgmt/tpm_nvwrite.c
@@ -230,7 +230,7 @@
 			logError(_("Out of memory.\n"));
 			return -1;
 		}
-		memset(rgbDataToWrite, fillvalue, ulDataLength);
+		__memset(rgbDataToWrite, fillvalue, ulDataLength);
 	} else {
 		ulDataLength = 0;
 	}