summaryrefslogtreecommitdiff
blob: 4f8ac2673345806695b1c4de0d8c8b74e125d5f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nru smstools.orig/src/cfgfile.c smstools/src/cfgfile.c
--- smstools.orig/src/cfgfile.c	2006-11-04 13:52:06.000000000 +0200
+++ smstools/src/cfgfile.c	2006-12-02 16:41:21.674892919 +0200
@@ -144,7 +144,7 @@
         if (splitline(line,name,size_name,value,size_value)==0)
 	{
 	  strncpy(value,line,size_value);
-	  value[size_value]=0;
+	  value[size_value-1]=0;
 	  return -1;
 	}
 	else