From 08ca40fe73d4d27c68fe13b6a004a98ccabf9326 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 29 Mar 2014 13:11:56 +0100 Subject: [PATCH] sharedspice.c, bug fix, don't write beyond size of array `p' --- src/sharedspice.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 5cf7c40df..67e406c7f 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -944,7 +944,6 @@ sh_vfprintf(FILE *f, const char *fmt, va_list args) if(nchars == -1) { // compatibility to old implementations size *= 2; - nchars = vsnprintf(p, size, fmt, args); } else if (size < (size_t)nchars + 1) { size = (size_t)nchars + 1; } else {