Explorar o código

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 %!s(int64=19) %!d(string=hai) anos
pai
achega
06b87e1322
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 
-	sprintf (error_reason, "Successfully read AMF configuration file '%s'.\n", filename);
+	sprintf (buf, "Successfully read AMF configuration file '%s'.\n", filename);
 	*error_string = buf;
 
 	return cluster;