Adding \n to a message.

This commit is contained in:
Sergiotarxz 2023-04-03 21:59:12 +02:00
parent b10f700f35
commit 621f57aec0
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ int main(int argc, char **argv) {
unlink(SOCKET_ADDRESS);
size_t max_size_sun_path = sizeof address.sun_path - 1;
if (strlen(SOCKET_ADDRESS) > max_size_sun_path) {
fprintf(stderr, "Too big socket address");
fprintf(stderr, "Too big socket address\n");
exit (2);
}
strncpy(address.sun_path, SOCKET_ADDRESS, max_size_sun_path);

View File

@ -110,7 +110,7 @@ msPacketSaveRequestSendResponse(struct mCoreThread *threadContext) {
pthread_mutex_lock(data->mutexSaveRequests);
requestsLen = data->saveRequestsLen;
if (!requestsLen) {
printf("Somehow the queue of saveRequests got exhausted, this should not happen.");
printf("Somehow the queue of saveRequests got exhausted, this should not happen.\n");
goto unlock_ms_packet_save_request_send_response;
}
struct msCoreController *coreController = data->coreController;