freebsd-ports/security/manipulate_data/files/patch-read_data.c
Pav Lucistnik 7f11d466fb Add manipulate_data, a set of tools to search data on a harddrive/partition/file,
extract the part you are interested in, and write it back after you modified it.

PR:		ports/69555
Submitted by:	bugghy <bugghy@phenix.rootshell.be>
2004-07-25 21:43:11 +00:00

11 lines
332 B
C

--- read_data.c.orig Wed Jul 7 17:00:30 2004
+++ read_data.c Sun Jul 25 23:36:58 2004
@@ -32,7 +32,7 @@
if (sizeof(start) < 8)
start = atol(argv[2]);
else
- start = atoll(argv[2]);
+ start = strtoll(argv[2], (char **)NULL, 10);
bytes = atol(argv[3]);
if ((bytes < 1) || (bytes > MAX_SIZE)) {