freebsd-ports/security/manipulate_data/files/patch-write_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
374 B
C

--- write_data.c.orig Wed Jul 7 16:58:54 2004
+++ write_data.c Sun Jul 25 23:37:48 2004
@@ -49,7 +49,7 @@
if (sizeof(start) < 8)
start = atol(c_ptr2);
else
- start = atoll(c_ptr2);
+ start = strtoll(c_ptr2, (char **)NULL, 10);
bytes = atol(c_ptr);
if (sizeof(start) < 8)
sprintf(tmpbuf, "%lu.%lu", (unsigned long) start, bytes);