]> andersk Git - moira.git/commitdiff
truncate name to size of DB field before doing comparison
authormar <mar>
Tue, 6 Mar 1990 18:46:28 +0000 (18:46 +0000)
committermar <mar>
Tue, 6 Mar 1990 18:46:28 +0000 (18:46 +0000)
regtape/employee.dc
regtape/students.dc

index 6a83b7fec854d8030e34b399f20e1962882ab01f..5d3c98eec62e3d6e4dfda7f9c207712b1fa43d8e 100644 (file)
@@ -213,7 +213,11 @@ struct entry *e;
 ##  int id;
 
     first = e->first;
+    if (strlen(first) > 16)
+      first[16] = 0;
     last = e->last;
+    if (strlen(last) > 16)
+      last[16] = 0;
     eid = e->eid;
     id = 0;
 ##  repeat retrieve (id = u.users_id, class = u.mit_year, oaddr = u.office_addr,
index 4c834ce138ebab6b2747f62560b3a144e5956ea5..264183f4e87edf00c90eca8ee01a8d1558d3c61d 100644 (file)
@@ -217,7 +217,11 @@ struct entry *e;
 ##  int id;
 
     first = e->first;
+    if (strlen(first) > 16)
+      first[16] = 0;
     last = e->last;
+    if (strlen(last) > 16)
+      last[16] = 0;
     eid = e->eid;
     id = 0;
 ##  repeat retrieve (id = u.users_id, class = u.mit_year, haddr = u.home_addr,
This page took 0.046192 seconds and 5 git commands to generate.