projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix off-by-one error in the BlueSky simple storage backend.
[bluesky.git]
/
bluesky
/
store-simple.c
diff --git
a/bluesky/store-simple.c
b/bluesky/store-simple.c
index
ef68e11
..
25eef53
100644
(file)
--- a/
bluesky/store-simple.c
+++ b/
bluesky/store-simple.c
@@
-143,7
+143,7
@@
static void simplestore_task(gpointer a, gpointer b)
char *data = g_malloc(result);
if (strchr(result_buf, '\n') != NULL) {
char *data = g_malloc(result);
if (strchr(result_buf, '\n') != NULL) {
- int header_size = strchr(result_buf, '\n') - result_buf;
+ int header_size = strchr(result_buf, '\n') - result_buf
+ 1
;
int data_bytes = bytes - header_size;
if (data_bytes > result)
data_bytes = result;
int data_bytes = bytes - header_size;
if (data_bytes > result)
data_bytes = result;