From 6c1494b19ccc847a87b62b9477cc0a1f2544aa9a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 20 Dec 2004 18:55:18 +0000 Subject: [PATCH] Fix long standing regression in the building of the server directory name (found by Nigel Rowe). --- libs/wine/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index ebe41080bd0..b2b039c7f1e 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -117,9 +117,9 @@ static void init_server_dir( dev_t dev, ino_t ino ) p = server_dir + strlen(server_dir); if (sizeof(dev) > sizeof(unsigned long) && dev > ~0UL) - sprintf( p, "%lx%08lx-", (unsigned long)(dev >> 32), (unsigned long)dev ); + p += sprintf( p, "%lx%08lx-", (unsigned long)(dev >> 32), (unsigned long)dev ); else - sprintf( p, "%lx-", (unsigned long)dev ); + p += sprintf( p, "%lx-", (unsigned long)dev ); if (sizeof(ino) > sizeof(unsigned long) && ino > ~0UL) sprintf( p, "%lx%08lx", (unsigned long)(ino >> 32), (unsigned long)ino );