diff mbox series

Fix typo in gcc/asan.c comment

Message ID CAFjpAKrohg=9sQYVprPmkoOQcSq1s3ehG2DXmf2Uo=f58pEMCA@mail.gmail.com
State New
Headers show
Series Fix typo in gcc/asan.c comment | expand

Commit Message

Ahamed Husni March 7, 2021, 10:10 p.m. UTC
Hi all,
    This is my first contribution for an open source project. Please guide
me if anything is missing.



Author: Husni Faiz <ahamedhusni73@gmail.com>
Date:   Mon Mar 8 03:28:51 2021 +0530

    Fix typo in gcc/asan.c comment

    The size of the variable 'a' should be 24 bytes as mentioned in line
    no.126.

Comments

Jeff Law March 20, 2021, 3:18 p.m. UTC | #1
On 3/7/2021 4:10 PM, Ahamed Husni via Gcc-patches wrote:
> Hi all,
>      This is my first contribution for an open source project. Please guide
> me if anything is missing.
>
> diff --git a/gcc/gcc/asan.c b/gcc/gcc/asan.c
> index 89ecd99b182..836f50bd44a 100755
> --- a/gcc/gcc/asan.c
> +++ b/gcc/gcc/asan.c
> @@ -105,7 +105,7 @@ along with GCC; see the file COPYING3.  If not see
>        int
>        foo ()
>        {
> -       char a[23] = {0};
> +       char a[24] = {0};
>          int b[2] = {0};
>
>          a[5] = 1;
>
>
> Author: Husni Faiz <ahamedhusni73@gmail.com>
> Date:   Mon Mar 8 03:28:51 2021 +0530
>
>      Fix typo in gcc/asan.c comment
>
>      The size of the variable 'a' should be 24 bytes as mentioned in line
>      no.126.

There's another instance a bit later in the file that I fixed as well.


Thanks,

Jeff
diff mbox series

Patch

diff --git a/gcc/gcc/asan.c b/gcc/gcc/asan.c
index 89ecd99b182..836f50bd44a 100755
--- a/gcc/gcc/asan.c
+++ b/gcc/gcc/asan.c
@@ -105,7 +105,7 @@  along with GCC; see the file COPYING3.  If not see
      int
      foo ()
      {
-       char a[23] = {0};
+       char a[24] = {0};
        int b[2] = {0};
 
        a[5] = 1;