Browse Source

Bugfix + changing cflags

Yann Weber 6 years ago
parent
commit
dc51926e28
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      libs/Makefile
  2. 2
    2
      libs/cturmit.c

+ 2
- 2
libs/Makefile View File

@@ -1,7 +1,7 @@
1 1
 PYTHON=/usr/bin/python3
2
-CFLAGS=-Wall -Werror -O0 -g
2
+#CFLAGS=-Wall -Werror -O0 -g
3
+CFLAGS=-Wall -Werror
3 4
 CC=gcc $(CFLAGS) 
4
-#CFLAGS=-Wall -Werror
5 5
 
6 6
 all: cturmit*.so
7 7
 

+ 2
- 2
libs/cturmit.c View File

@@ -174,8 +174,8 @@ but %ld found", sz);
174 174
 			asc_str = PyUnicode_AsASCIIString(
175 175
 						PyList_GetItem(keys, i));
176 176
 			strncat(err_msg,
177
-				(char*)PyBytes_AsString(asc_str),128);
178
-			strncat(err_msg, "', '", 128);
177
+				(char*)PyBytes_AsString(asc_str),127);
178
+			strncat(err_msg, "', '", 127);
179 179
 		}
180 180
 		Py_DECREF(keys);
181 181
 		strncat(err_msg, "'", 128);

Loading…
Cancel
Save