Commit 8b96d708 authored by chenhaowen01's avatar chenhaowen01

fix: get_version

parent 584bce2c
#CC:=gcc #CC:=gcc
VERSION:=1.6.2 VERSION:=1.6.3
CFLAGS+= -Wall -fPIC -DDEBUG -DVERSION=\"$(VERSION)\" CFLAGS+= -Wall -fPIC -DDEBUG -DVERSION=\"$(VERSION)\"
objects= config.o auth.o objects= config.o auth.o
......
...@@ -41,7 +41,7 @@ void set_enable_crypt(int enable) ...@@ -41,7 +41,7 @@ void set_enable_crypt(int enable)
void get_version(char* version) void get_version(char* version)
{ {
memcpy(version, VERSION, strlen(VERSION)); strcpy(version, VERSION);
} }
void set_log_file(char * log_file, int len) void set_log_file(char * log_file, int len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment