hups
This commit is contained in:
2
Makefile
2
Makefile
@@ -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=
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user