diff options
author | shdown <shdownnine@gmail.com> | 2015-08-03 12:50:13 +0300 |
---|---|---|
committer | shdown <shdownnine@gmail.com> | 2015-08-03 12:50:13 +0300 |
commit | bc52fae15c75635e9cec57e25619d304dba3a69b (patch) | |
tree | 6941da07169737c1ab78cd1a1239cfb2946aac87 /i3-msg | |
parent | 05fb9096362e788f032de6eccea2d7fea03317ab (diff) | |
download | i3-bc52fae15c75635e9cec57e25619d304dba3a69b.tar.gz i3-bc52fae15c75635e9cec57e25619d304dba3a69b.zip |
libi3: change scalloc() signature to match calloc()
Diffstat (limited to 'i3-msg')
-rw-r--r-- | i3-msg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c index 6a6186d8..3f195d41 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -77,7 +77,7 @@ static int reply_boolean_cb(void *params, int val) { } static int reply_string_cb(void *params, const unsigned char *val, size_t len) { - char *str = scalloc(len + 1); + char *str = scalloc(len + 1, 1); strncpy(str, (const char *)val, len); if (strcmp(last_key, "error") == 0) last_reply.error = str; @@ -105,7 +105,7 @@ static int reply_end_map_cb(void *params) { static int reply_map_key_cb(void *params, const unsigned char *keyVal, size_t keyLen) { free(last_key); - last_key = scalloc(keyLen + 1); + last_key = scalloc(keyLen + 1, 1); strncpy(last_key, (const char *)keyVal, keyLen); return 1; } |