summaryrefslogtreecommitdiff
path: root/packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch')
-rw-r--r--packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch b/packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch
new file mode 100644
index 0000000000..1864b4494e
--- /dev/null
+++ b/packages/uboot/u-boot-1.1.4/u-boot-autoscript.patch
@@ -0,0 +1,12 @@
+--- u-boot-1.1.2/common/cmd_autoscript.c
++++ u-boot-1.1.2/common/cmd_autoscript.c
+@@ -110,8 +110,8 @@
+ return 1;
+ }
+
+- while (*len_ptr++);
++ do { len_ptr++; } while (!(*len_ptr));
+
+ /* make sure cmd is null terminated */
+ memmove (cmd, (char *)len_ptr, len);
+ *(cmd + len) = 0;