summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-15 09:43:34 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-15 09:43:34 +0000
commitcf853314f9eda479c6f18bfc725fa0b5d88d0a38 (patch)
treec9daaf8c57ca020e9528ed2c115bc4549efeac9a
parentcfc5ca3416cea5ea5d2ac34f5521cb6367e42cd2 (diff)
downloadsamba-cf853314f9eda479c6f18bfc725fa0b5d88d0a38.tar.gz
samba-cf853314f9eda479c6f18bfc725fa0b5d88d0a38.tar.xz
samba-cf853314f9eda479c6f18bfc725fa0b5d88d0a38.zip
don't use C++ comments in C - it doesn't work on many compilers
-rw-r--r--source/lib/substitute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index 1e8d8c2555d..6d96a1820f1 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -118,7 +118,7 @@ static char * realloc_expand_env_var(char *str, char *p)
r = p + 3;
copylen = q - r;
- envname = (char *)malloc(copylen + 1 + 4); // reserve space for use later add %$() chars
+ envname = (char *)malloc(copylen + 1 + 4); /* reserve space for use later add %$() chars */
if (envname == NULL) return NULL;
strncpy(envname,r,copylen);
envname[copylen] = '\0';