Browse Source

Was writing to random mem using an uninitialized pointer

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1351 fd59a12c-fef9-0310-b244-a6a79926bd2f
Hans Feldt 19 years ago
parent
commit
06b87e1322
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exec/amfutil.c

+ 1 - 1
exec/amfutil.c

@@ -880,7 +880,7 @@ struct amf_cluster *amf_config_read (char **error_string)
 
 
 	fclose (fp);
 	fclose (fp);
 
 
-	sprintf (error_reason, "Successfully read AMF configuration file '%s'.\n", filename);
+	sprintf (buf, "Successfully read AMF configuration file '%s'.\n", filename);
 	*error_string = buf;
 	*error_string = buf;
 
 
 	return cluster;
 	return cluster;