src/server/config/conf.c

changeset 36
450d2d5f4735
parent 25
5dee29c7c530
child 38
d07810b02147
equal deleted inserted replaced
35:4417619a9bbd 36:450d2d5f4735
141 if((ptr = strrchr(buf, '\n'))) { 141 if((ptr = strrchr(buf, '\n'))) {
142 ptr[0] = 0; 142 ptr[0] = 0;
143 } 143 }
144 144
145 sstr_t line = sstr(buf); 145 sstr_t line = sstr(buf);
146 return sstrdub(line); 146 return sstrdup(line);
147 } 147 }
148 148
149 sstr_t s; 149 sstr_t s;
150 s.ptr = NULL; 150 s.ptr = NULL;
151 s.length = 0; 151 s.length = 0;

mercurial