Index: /branches/rel_apv_10_7/usr/click/lib/libdebug/debug.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libdebug/debug.c	(revision 39007)
+++ /branches/rel_apv_10_7/usr/click/lib/libdebug/debug.c	(working copy)
@@ -414,6 +414,25 @@
 	return ERR_DEBUG_OK;
 
 }
+
+
+
+/*
+ * Function to check if the string contains special characters replace
+ */
+
+void
+replace_special_chars_with_underscore(char** nic_name) {
+    // Loop through the string
+    for (int i = 0; (*nic_name)[i] != '\0'; i++) {
+        // Check if the character is not alphanumeric and not a space
+        if (!isalnum((*nic_name)[i]) && (*nic_name)[i] != ' ') {
+            (*nic_name)[i] = '_';  // Replace special character with an underscore
+        }
+    }
+}
+
+
 /*Bug 24350, end*/
 
 /* 
@@ -508,6 +527,7 @@
                 */
 		make_dir(NIC_TRACE_PATH);
 		if (array_name) {
+                    replace_special_chars_with_underscore(&array_name);
 #if defined(__linux__)
 		    snprintf(cmd, sizeof(cmd),
 			     "sh -c '/ca/bin/tcpdump -n -nn -i %s -s 0 -w " NIC_TRACE_PATH 
@@ -538,6 +558,7 @@
 		 */
 		make_dir(DEBUG_PATH);
 		if (array_name) {
+                    replace_special_chars_with_underscore(&array_name);
 #if defined(__linux__)
 		    snprintf(cmd, sizeof(cmd),
 			     "sh -c '/ca/bin/tcpdump -p -n -nn -i %s -s 0 -w " DEBUG_PATH 
