MIDI set_sync_client fix, cleanups, compilation fixes for gcc 2.95 - Alex
[terminatorX.git] / src / main.cc
index db92f11e9342ebc450a4c39a8dd4f019dc6c9198..a5f3fc25d576369952dc74033a10a69d9d753fad 100644 (file)
@@ -58,6 +58,7 @@
 #include "tX_dialog.h"
 #include <gtk/gtk.h>
 #include <glib.h>
+#include <string.h>
 
 #include "tX_ladspa.h"
 #include "tX_ladspa_class.h"
@@ -176,7 +177,11 @@ void checkenv(const char *name) {
        
        value=getenv(name);
        if (value) {
-               length=strnlen(value, PATH_MAX+1);
+               length=strlen(value);
+               /*
+                strnlen requires extra macros...
+                length=strnlen(value, PATH_MAX+1);
+               */
                
                if (length>=PATH_MAX) {
                        tX_error("Your \"%s\" environment variable seems malicious (%i chars).", name, length);