projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
engines/libblkio: Add option libblkio_vectored
[fio.git]
/
lib
/
strntol.c
diff --git
a/lib/strntol.c
b/lib/strntol.c
index f622c8dc22cebd9d2504d794de028f203bfab265..c3a55a117801f56fbe39a40e9b09327968cbc3e0 100644
(file)
--- a/
lib/strntol.c
+++ b/
lib/strntol.c
@@
-28,6
+28,6
@@
long strntol(const char *str, size_t sz, char **end, int base)
if (ret == LONG_MIN || ret == LONG_MAX)
return ret;
if (end)
- *end = (char *)
str
+ (*end - buf);
+ *end = (char *)
beg
+ (*end - buf);
return ret;
}