aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/os/xprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/os/xprintf.c')
-rw-r--r--nx-X11/programs/Xserver/os/xprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/os/xprintf.c b/nx-X11/programs/Xserver/os/xprintf.c
index de56de0d1..58e0d507d 100644
--- a/nx-X11/programs/Xserver/os/xprintf.c
+++ b/nx-X11/programs/Xserver/os/xprintf.c
@@ -128,7 +128,7 @@ Xvasprintf(char **ret, const char *_X_RESTRICT_KYWD format, va_list va)
}
else
{
- ret[r] = 0;
+ (*ret)[r] = 0;
return r;
}
}
@@ -164,7 +164,7 @@ Xvasprintf(char **ret, const char *_X_RESTRICT_KYWD format, va_list va)
return -1;
vsnprintf(*ret, size + 1, format, va);
- ret[size] = 0;
+ (*ret)[size] = 0;
return size;
#endif
}