This commit is contained in:
leitner
2007-06-28 22:53:24 +00:00
parent 731f2b677d
commit 0396c78805
2 changed files with 6 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ CC=gcc
CFLAGS=-pipe -I. -Wall -W
ifneq ($(DEBUG),)
DIET=/opt/diet/bin/diet
CFLAGS=-pipe -I. -Wall -W -g
CFLAGS=-pipe -I. -Wall -W -g -fstack-protector
endif
ifeq ($(COVERAGE),1)
DIET=

View File

@@ -18,8 +18,11 @@
static void buffer_putescaped(buffer* b,const char* x,size_t l) {
size_t needed=fmt_ldapescape2(0,x,l,"");
char* buf=alloca(needed);
fmt_ldapescape(buf,x,l);
char* buf;
if (needed>100000)
buf=0;
buf=alloca(needed);
fmt_ldapescape2(buf,x,l,"");
buffer_put(b,buf,needed);
}