From 999d9d5f78c7d7acc5b4e99076c04505d65ed9ab Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 5 Mar 2013 03:08:26 +0100 Subject: [PATCH] Quote the names of directories when they contain the space character --- src/makefile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/makefile.c b/src/makefile.c index 9b11ccb..0a084ab 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -180,7 +180,10 @@ static int _variables_print(Configure * configure, FILE * fp, continue; c = prints[i]; prints[i] = '\0'; - fprintf(fp, " %s", prints); + if(strchr(prints, ' ') != NULL) + fprintf(fp, " \"%s\"", prints); + else + fprintf(fp, " %s", prints); if(c == '\0') break; prints += i + 1;