summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch
index 14f4d2ada..cad695154 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch
@@ -16,7 +16,7 @@
16- retno = vfscanf(fp, scanf_line, argptr); 16- retno = vfscanf(fp, scanf_line, argptr);
17+ 17+
18+ line = xmalloc(sizeof(line) * line_size); 18+ line = xmalloc(sizeof(line) * line_size);
19+ while(fgets(line, sizeof(line), fp) != 0 ) { 19+ while(fgets(line, sizeof(line), fp) != NULL ) {
20+ line_size += MAX_LINE; 20+ line_size += MAX_LINE;
21+ line = xrealloc(line,line_size); 21+ line = xrealloc(line,line_size);
22+ } 22+ }