projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1a5eb3
)
strntoul() is supposed to return unsigned long, not int
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 30 Jun 2008 08:24:34 +0000
(11:24 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 30 Jun 2008 08:24:34 +0000
(11:24 +0300)
- the type mismatch busts up handling on largish files...
lib/cpio.c
patch
|
blob
|
history
diff --git
a/lib/cpio.c
b/lib/cpio.c
index
92cdbc5
..
f45644b
100644
(file)
--- a/
lib/cpio.c
+++ b/
lib/cpio.c
@@
-26,7
+26,7
@@
* @param num max no. of bytes to read
* @return converted integer
*/
-static
int
strntoul(const char *str,char **endptr, int base, size_t num)
+static
unsigned long
strntoul(const char *str,char **endptr, int base, size_t num)
{
char buf[num+1], * end;
unsigned long ret;