From 5b9369bb0feeeb1da29d286458ed6da9796c94f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 18 Jun 2007 22:58:21 +0000 Subject: [PATCH] Unbugger, really. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21160 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/sl/sl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sl/sl.c b/lib/sl/sl.c index 1b941aefd..2f9930496 100644 --- a/lib/sl/sl.c +++ b/lib/sl/sl.c @@ -242,12 +242,12 @@ sl_make_argv(char *line, int *ret_argc, char ***ret_argv) ; } else if (*p == '"') { quote = !quote; - memmove(&p[0], &p[1], strlen(&p[1])); + memmove(&p[0], &p[1], strlen(&p[1]) + 1); continue; } else if (*p == '\\') { if (p[1] == '\0') goto failed; - memmove(&p[0], &p[1], strlen(&p[1])); + memmove(&p[0], &p[1], strlen(&p[1]) + 1); p += 2; continue; } else if (quote || !isspace((unsigned char)*p)) {