From 4e2dbb13a32775f345903dc38f30ec37e4276230 Mon Sep 17 00:00:00 2001 From: szaka Date: Wed, 11 Apr 2007 22:16:17 +0000 Subject: [PATCH] fix: option parsing may failed due to a bug introduced in 1.411-RC --- src/ntfs-3g.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 155dcb1e..0ec870ed 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -1898,7 +1898,10 @@ static int strappend(char **dest, const char *append) return -1; } - strcat(p, append); + if (*dest) + strcat(p, append); + else + strcpy(p, append); *dest = p; return 0;