]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-hexdump-gcc.patch
- new
[packages/util-linux.git] / util-linux-hexdump-gcc.patch
1
2  gcc 4.1.0: "warning: memset used with constant zero length parameter; this
3  could be due to transposed parameters". So, fix it!
4  -- 03/30/2006 Karel Zak <kzak@redhat.com> 
5
6 --- util-linux-2.13-pre7/text-utils/display.c.gcc       2006-03-31 10:44:50.000000000 +0200
7 +++ util-linux-2.13-pre7/text-utils/display.c   2006-03-31 10:45:22.000000000 +0200
8 @@ -255,7 +255,8 @@
9                                         (void)printf("*\n");
10                                 return(NULL);
11                         }
12 -                       memset((char *)curp + nread, 0, need);
13 +                       if (need > 0)
14 +                               memset((char *)curp + nread, 0, need);
15                         eaddress = address + nread;
16                         return(curp);
17                 }
This page took 0.07658 seconds and 3 git commands to generate.