]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-hexdump-gcc.patch
- AC-branch only,
[packages/util-linux.git] / util-linux-hexdump-gcc.patch
CommitLineData
5545a732
JR
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.327082 seconds and 4 git commands to generate.