]> andersk Git - moira.git/blobdiff - gen/util.c
add mk_cmds
[moira.git] / gen / util.c
index d241de8da1e01a9de87bd9390a96e6f602303f7f..5e5c728711b6aa56eaab95ded8edaac125da421f 100644 (file)
@@ -1,9 +1,14 @@
 /* $Header$
  *
  * Utility routines used by the SMS extraction programs.
+ *
+ *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *  For copying and distribution information, please see the file
+ *  <mit-copyright.h>.
  */
 
 
+#include <mit-copyright.h>
 #include <stdio.h>
 #include <sys/time.h>
 #include <sms.h>
@@ -115,5 +120,8 @@ register char *s;
          last = s;
        s++;
     }
-    *(++last) = '\0';
+    if (*last == ' ')
+      *last = '\0';
+    else
+      *(++last) = '\0';
 }
This page took 0.030874 seconds and 4 git commands to generate.