mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Fix bug of strcpy to wrong place during realloc
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,6 +1,7 @@
|
||||
CFLAGS =
|
||||
|
||||
TARGET = chsrc
|
||||
TEST_TARGET = test_$(TARGET)
|
||||
#=======================
|
||||
|
||||
all:
|
||||
@@ -8,8 +9,8 @@ all:
|
||||
@gcc chsrc.c $(CFLAGS) -o $(TARGET)
|
||||
|
||||
test:
|
||||
@gcc test_helper.c -o test
|
||||
@./test
|
||||
@gcc test_helper.c -o $(TEST_TARGET)
|
||||
@./$(TEST_TARGET)
|
||||
|
||||
test_cmd: $(TARGET)
|
||||
./$(TARGET) list mirror
|
||||
|
Reference in New Issue
Block a user