[Nagios-devel] config file absolute path
-
Guest
[Nagios-devel] config file absolute path
--=-FST1ZyR/KN4qpy9Z28h+
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
why would we not just use a 1 as an argument to strncat, as in the diff
attached, just curios.
thanks.
--=-FST1ZyR/KN4qpy9Z28h+
Content-Disposition: attachment; filename="nagios.diff"
Content-Type: text/x-patch; name="nagios.diff"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
--- base/nagios.c 2008-10-14 15:27:57.000000000 +0200
+++ /tmp/nagios.c 2008-11-01 21:48:51.000000000 +0200
@@ -452,7 +452,7 @@
getcwd(config_file,MAX_FILENAME_LENGTH);
/* append a forward slash */
- strncat(config_file,"/",MAX_FILENAME_LENGTH-2);
+ strncat(config_file,"/",1);
config_file[MAX_FILENAME_LENGTH-1]='\x0';
/* append the config file to the path */
--=-FST1ZyR/KN4qpy9Z28h+--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]