Rename getline function to unsafe, to make it greppable.
Now i can trim them one-by-one.
This commit is contained in:
@ -215,7 +215,7 @@ int a_Dpip_check_auth(const char *auth_tag)
|
||||
fname = dStrconcat(dGethomedir(), "/.flenser/dpid_comm_keys", NULL);
|
||||
if ((In = fopen(fname, "r")) == NULL) {
|
||||
MSG_ERR("[a_Dpip_check_auth] %s\n", dStrerror(errno));
|
||||
} else if ((rcline = dGetline(In)) == NULL) {
|
||||
} else if ((rcline = dGetline_unsafe(In)) == NULL) {
|
||||
MSG_ERR("[a_Dpip_check_auth] empty file: %s\n", fname);
|
||||
} else {
|
||||
port = strtol(rcline, &tail, 10);
|
||||
|
Reference in New Issue
Block a user