Changed new libtool options

Sat, 03 Sep 2005 16:45:09 +0200

author
mbse
date
Sat, 03 Sep 2005 16:45:09 +0200
changeset 19
ee35119f64c0
parent 18
4505514ea2fd
child 20
80702e322ea6

Changed new libtool options

src/Makefile file | annotate | diff | revisions
src/input.c file | annotate | diff | revisions
     1.1 --- a/src/Makefile	Sat Sep 03 16:39:05 2005 +0200
     1.2 +++ b/src/Makefile	Sat Sep 03 16:45:09 2005 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  #############################################################################################################
     1.5  
     1.6  .c.o:
     1.7 -		libtool ${CC} ${CFLAGS} -c $<
     1.8 +		libtool --mode=compile ${CC} ${CFLAGS} -c $<
     1.9  
    1.10  all:		${TARGET}
    1.11  
    1.12 @@ -26,7 +26,7 @@
    1.13  		ranlib libdoor.a
    1.14  
    1.15  libdoor.la:	${OBJS}
    1.16 -		libtool ${CC} -g -O -o libdoor.la ${LOBJS} -release "${VERSION}" -rpath ${DESTDIR}${LIBDIR}
    1.17 +		libtool --mode=link ${CC} -g -O -o libdoor.la ${LOBJS} -release "${VERSION}" -rpath ${DESTDIR}${LIBDIR}
    1.18  
    1.19  install:	all
    1.20  		mkdir -p ${DESTDIR}${LIBDIR}
     2.1 --- a/src/input.c	Sat Sep 03 16:39:05 2005 +0200
     2.2 +++ b/src/input.c	Sat Sep 03 16:45:09 2005 +0200
     2.3 @@ -287,7 +287,7 @@
     2.4  	if (ch > 31 && ch < 127) {
     2.5  	    if (iPos <= iMaxLen) {
     2.6  		iPos++;
     2.7 -		snprintf(sStr + strlen(sStr), "%c", ch);
     2.8 +		snprintf(sStr + strlen(sStr), 5, "%c", ch);
     2.9  		printf("%c", ch);
    2.10  	    } else
    2.11  		putchar('\007');
    2.12 @@ -334,7 +334,7 @@
    2.13  	if ((ch > 31) && (ch < 127) && (ch != ',')) {
    2.14  	    if (iPos <= iMaxlen) {
    2.15  		iPos++;
    2.16 -		snprintf(sStr + strlen(sStr), "%c", ch);
    2.17 +		snprintf(sStr + strlen(sStr), 5, "%c", ch);
    2.18  		printf("%c", ch);
    2.19  	    } else
    2.20  		putchar('\007');
    2.21 @@ -395,7 +395,7 @@
    2.22  		    ch = tolower(ch);
    2.23  		if (iPos == 1)
    2.24  		    ch = toupper(ch);
    2.25 -		snprintf(sStr + strlen(sStr), "%c", ch);
    2.26 +		snprintf(sStr + strlen(sStr), 5, "%c", ch);
    2.27  		printf("%c", ch);
    2.28  	    } else {
    2.29  		putchar('\007');
    2.30 @@ -444,7 +444,7 @@
    2.31  	if ((ch >= '0' && ch <= '9') || (ch == '-') || (ch == ' ') || (ch == ',') || (ch == '.')) {
    2.32  	    if (iPos <= iMaxlen) {
    2.33  		iPos++;
    2.34 -		snprintf(sStr + strlen(sStr), "%c", ch);
    2.35 +		snprintf(sStr + strlen(sStr), 5, "%c", ch);
    2.36  		printf("%c", ch);
    2.37  	    } else {
    2.38  		putchar('\007');

mercurial