[patch] sys/boot/fdt/fdt_loader_cmd.c

From: Dmitry Luhtionov <dmitryluhtionov_at_gmail.com>
Date: Fri, 20 Feb 2015 23:59:13 +0200
--- sys/boot/fdt/fdt_loader_cmd.c.orig 2015-02-04 10:06:18.000000000 +0200
+++ sys/boot/fdt/fdt_loader_cmd.c 2015-02-20 23:50:26.000000000 +0200
_at__at_ -1299,13 +1299,12 _at__at_ fdt_merge_strings(int argc, char *argv[]
  sz += argc - start;

  buf = (char *)malloc(sizeof(char) * sz);
- bzero(buf, sizeof(char) * sz);
-
  if (buf == NULL) {
  sprintf(command_errbuf, "could not allocate space "
     "for string");
  return (1);
  }
+ bzero(buf, sizeof(char) * sz);

  idx = 0;
  for (i = start, idx = 0; i < argc; i++) {
Received on Fri Feb 20 2015 - 20:59:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:55 UTC