X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Freplacements.c;h=b4bb94f06e43398e99771ea3ec05a4bf786d30e8;hp=b083096f8213015e61a6c001504bfff1023886a9;hb=e0fc7a54f287aad414b373410e09faa048f3a9dd;hpb=191a5736c202dfb784e86a8190edc64e80dc62e5 diff --git a/src/helper/replacements.c b/src/helper/replacements.c index b083096f82..b4bb94f06e 100644 --- a/src/helper/replacements.c +++ b/src/helper/replacements.c @@ -19,9 +19,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ /* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */ @@ -123,7 +121,7 @@ size_t strnlen(const char *s, size_t maxlen) char *strndup(const char *s, size_t n) { size_t len = strnlen(s, n); - char *new = (char *) malloc(len + 1); + char *new = malloc(len + 1); if (new == NULL) return NULL;