<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 13px;" lang="x-western">Fix psplash segmentation fault
      <br>
      <br>
      This fixes the segmentation fault when calling:
      <br>
      psplash -a
      <br>
      <br>
      The -a option requires a rotation angle to be given
      <br>
      and if it is missing then the user is shown the correct usage.
      <br>
      <br>
      Signed-off-by: Aws Ismail <a class="moz-txt-link-rfc2396E"
        href="mailto:aws.ismail@windriver.com">&lt;aws.ismail@windriver.com&gt;</a>
      <br>
      <br>
      diff --git
      a/meta/recipes-core/psplash/files/psplash-fix-angle-argv-segfault.patch
      b/meta/recipes-core/psplash/files/psplash-fix-angle-argv-s
      <br>
      new file mode 100644
      <br>
      index 0000000..797fe48
      <br>
      --- /dev/null
      <br>
      +++
      b/meta/recipes-core/psplash/files/psplash-fix-angle-argv-segfault.patch
      <br>
      @@ -0,0 +1,27 @@
      <br>
      +Fix psplash segmentation fault
      <br>
      +
      <br>
      +This fixes the segmentation fault when calling:
      <br>
      +psplash -a
      <br>
      +
      <br>
      +The -a option requires a rotation angle to be given
      <br>
      +and if it is missing then the user is shown the correct usage.
      <br>
      +
      <br>
      +From: git://git.yoctoproject.org/psplash
      <br>
      +
      <br>
      +Upstream-Status: Submitted
      <br>
      +
      <br>
      +Signed-off-by: Aws Ismail <a class="moz-txt-link-rfc2396E"
        href="mailto:aws.ismail@windriver.com">&lt;aws.ismail@windriver.com&gt;</a>
      <br>
      +
      <br>
      +diff --git a/psplash.c b/psplash.c
      <br>
      +index 0158628..09cf0d0 100644
      <br>
      +--- a/psplash.c
      <br>
      ++++ b/psplash.c
      <br>
      +@@ -219,7 +219,7 @@ main (int argc, char** argv)
      <br>
      +
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!strcmp(argv[i],"-a") || !strcmp(argv[i],"--angle"))
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
      <br>
      +-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (++i &gt; argc) goto fail;
      <br>
      ++&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (++i &gt;= argc) goto fail;
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; angle = atoi(argv[i]);
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
      <br>
      diff --git a/meta/recipes-core/psplash/psplash_git.bb
      b/meta/recipes-core/psplash/psplash_git.bb
      <br>
      index 0d88a60..06f8a9c 100644
      <br>
      --- a/meta/recipes-core/psplash/psplash_git.bb
      <br>
      +++ b/meta/recipes-core/psplash/psplash_git.bb
      <br>
      @@ -11,6 +11,7 @@ PR = "r2"
      <br>
      <br>
      &nbsp;SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext"
        href="file://psplash-init">file://psplash-init</a> \
      <br>
      +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext"
        href="file://psplash-fix-angle-argv-segfault.patch">file://psplash-fix-angle-argv-segfault.patch</a>
      \
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${SPLASH_IMAGES}"
      <br>
      <br>
      &nbsp;SPLASH_IMAGES = <a class="moz-txt-link-rfc2396E"
        href="file://psplash-poky-img.h;outsuffix=default">"file://psplash-poky-img.h;outsuffix=default"</a>
      <br>
      <br>
    </div>
  </body>
</html>