git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New partition APIs: part_del, part_get_bootable, part_get/set_mbr_id
[libguestfs.git]
/
daemon
/
fill.c
diff --git
a/daemon/fill.c
b/daemon/fill.c
index
b1b0f5e
..
5a391aa
100644
(file)
--- a/
daemon/fill.c
+++ b/
daemon/fill.c
@@
-20,6
+20,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
@@
-37,12
+38,12
@@
do_fill (int c, int len, const char *path)
char buf[BUFSIZ];
if (c < 0 || c > 255) {
char buf[BUFSIZ];
if (c < 0 || c > 255) {
- reply_with_error ("
fill:
%d: byte number must be in range 0..255", c);
+ reply_with_error ("%d: byte number must be in range 0..255", c);
return -1;
}
memset (buf, c, BUFSIZ);
if (len < 0) {
return -1;
}
memset (buf, c, BUFSIZ);
if (len < 0) {
- reply_with_error ("
fill:
%d: length is < 0", len);
+ reply_with_error ("%d: length is < 0", len);
return -1;
}
len_sz = (size_t) len;
return -1;
}
len_sz = (size_t) len;