861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
11 lines
474 B
Diff
11 lines
474 B
Diff
--- a/src/omx_create_loaders_linux.c 2011-05-20 07:28:17.000000000 +0200
|
|
+++ b/src/omx_create_loaders_linux.c 2020-09-25 11:33:11.570142732 +0200
|
|
@@ -95,7 +95,7 @@
|
|
if (isFileExisting) {
|
|
loaderFP = fopen(omxloader_registry_filename, "r");
|
|
// dlopen all loaders defined in .omxloaders file
|
|
- libraryFileName = malloc(MAX_LINE_LENGTH);
|
|
+ libraryFileName = malloc(MAX_LINE_LENGTH+1);
|
|
while(1) {
|
|
index_readline = 0;
|
|
while(index_readline < MAX_LINE_LENGTH) {
|