File salinfo-1.2.diff of Package salinfo

--- salinfo_decode.c
+++ salinfo_decode.c
@@ -303,7 +303,7 @@ log_dropped_records(void)
 				snprintf(line, sizeof(line), ", %d %s",
 					 dropped_all[i]->dropped, dropped_all[i]->name);
 				dropped_all[i]->dropped = 0;
-				strncat(log, line, sizeof(log));
+				strncat(log, line, sizeof(log) - strlen(log) - 1);
 			}
 		}
 		syslog(LOG_NOTICE, "%s", log);
@@ -424,7 +424,7 @@ talk_to_sal (void)
 		int fd;
 		char filename[PATH_MAX];
 		snprintf(filename, sizeof(filename), "%s/%s/.check", directory, rd[i]);
-		if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) {
+		if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
 			perror(filename);
 			goto out;
 		}