Files called from SICServer should now compile under linux
This commit is contained in:
@@ -160,7 +160,7 @@ Str_Buf *str_create_buf(size_t size, char separator)
|
||||
{ Str_Buf *buf;
|
||||
|
||||
NEW(buf);
|
||||
ERR_P(buf->buf=my_malloc(size, "buf"));
|
||||
ERR_P(buf->buf=MALLOC(size));
|
||||
buf->dsize=size;
|
||||
buf->sep=separator;
|
||||
buf->wrpos=0;
|
||||
@@ -184,6 +184,6 @@ void str_link_buf(Str_Buf *buf, char *str, int size, char separator) {
|
||||
}
|
||||
|
||||
void str_free_buf(Str_Buf *buf)
|
||||
{ my_free(buf->buf);
|
||||
my_free(buf);
|
||||
{ FREE(buf->buf);
|
||||
FREE(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user