xymon

Check-in [cc3d3801ce]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:null ptr fix for non-GNU printf, thanks Jeremy Laidman git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7599 44351d6e-118b-4698-b696-ce33095ecaa4
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin/4.3.19
Files: files | file ages | folders
SHA3-256: cc3d3801ce5319e4bb73245004be7c4b311dc615af2ae447fff3c28f052c1cfb
User & Date: jccleaver@users.sf.net 2015-03-13 07:07:12
Context
2015-03-15
17:55
html-encode msgs/procs status messages git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7600 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 7cb3c7331d user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
2015-03-13
07:07
null ptr fix for non-GNU printf, thanks Jeremy Laidman git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7599 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: cc3d3801ce user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
06:15
Revert r7578 for unified apache config; add FollowSymLinks to docs git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7598 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 94cd38164b user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/netservices.c.

77
78
79
80
81
82
83
84

85
86
87
88
89
90
91
92
93
	/* Encode a string with possibly binary data into an ascii-printable form */

	static char hexchars[16] = "0123456789ABCDEF";
	static char *result = NULL;
	unsigned char *inp, *outp;
	int i;

	if (!buf) return NULL;


	if (result) xfree(result);
	if (buf && (buflen == 0)) buflen = strlen(buf);
	result = (char *)malloc(4*buflen + 1);	/* Worst case: All binary */

	for (inp=buf, i=0, outp=result; (i<buflen); i++,inp++) {
		if (isprint(*inp)) {
			*outp = *inp;
			outp++;







|
>

<







77
78
79
80
81
82
83
84
85
86

87
88
89
90
91
92
93
	/* Encode a string with possibly binary data into an ascii-printable form */

	static char hexchars[16] = "0123456789ABCDEF";
	static char *result = NULL;
	unsigned char *inp, *outp;
	int i;

	if (result) xfree(result);
	if (!buf) { result = strdup("[null]"); return result; }


	if (buf && (buflen == 0)) buflen = strlen(buf);
	result = (char *)malloc(4*buflen + 1);	/* Worst case: All binary */

	for (inp=buf, i=0, outp=result; (i<buflen); i++,inp++) {
		if (isprint(*inp)) {
			*outp = *inp;
			outp++;