[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/dictionary.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/dictionary.c |
Date: |
Sat, 23 Apr 2005 05:27:25 -0400 |
Index: pspp/src/dictionary.c
diff -u pspp/src/dictionary.c:1.17 pspp/src/dictionary.c:1.18
--- pspp/src/dictionary.c:1.17 Sat Apr 23 07:55:29 2005
+++ pspp/src/dictionary.c Sat Apr 23 09:27:24 2005
@@ -422,7 +422,7 @@
else
{
const char *sn = make_short_name(d, name);
- strncpy(v->name, sn, SHORT_NAME_LEN);
+ strncpy(v->name, sn, SHORT_NAME_LEN + 1);
free(sn);
}
@@ -774,7 +774,7 @@
assert (strlen (new_names[i]) <= LONG_NAME_LEN );
sn = make_short_name(d, new_names[i]);
- strncpy(vars[i]->name, sn, SHORT_NAME_LEN);
+ strncpy(vars[i]->name, sn, SHORT_NAME_LEN + 1);
free(sn);
@@ -1272,6 +1272,7 @@
strcat(d, suffix);
}
+
return d;
}