Messages faffing: remove some extraneous \ns, and update the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 2 Dec 2008 18:15:18 +0000 (18:15 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 2 Dec 2008 18:15:18 +0000 (18:15 +0000)
copyright date since I've done significant work on this this year.

git-svn-id: svn://svn.tartarus.org/sgt/utils@8368 cda61777-01e9-0310-a592-d414129be87e

xcopy/xcopy.c

index f1678f1..90f4ca8 100644 (file)
@@ -64,7 +64,7 @@ void usage(void) {
 }
 
 const char licencemsg[] =
-    "xcopy is copyright 2001-2004 Simon Tatham.\n"
+    "xcopy is copyright 2001-2004,2008 Simon Tatham.\n"
     "\n"
     "Permission is hereby granted, free of charge, to any person\n"
     "obtaining a copy of this software and associated documentation files\n"
@@ -341,7 +341,7 @@ int init_X(void) {
          */
         XSetSelectionOwner (disp, sel_atom, ourwin, CurrentTime);
         if (XGetSelectionOwner (disp, sel_atom) != ourwin)
-            error ("unable to obtain primary X selection\n");
+            error ("unable to obtain primary X selection");
         compound_text_atom = XInternAtom(disp, "COMPOUND_TEXT", False);
        if (strtype == XA_STRING) {
            /*
@@ -534,18 +534,18 @@ void do_paste(Window window, Atom property, int Delete) {
             */
            if ((nread & 3) != 0) {
                error("unexpected data size: %d read (not a multiple"
-                     " of 4), but more to come\n", nread);
+                     " of 4), but more to come", nread);
            }
 
            if (expected_type != (Atom)None && actual_type != expected_type) {
                char *expout = XGetAtomName(disp, expected_type);
                char *gotout = (actual_type == (Atom)None ? "None" :
                                XGetAtomName(disp, actual_type));
-               error("unexpected data type: expected %s, got %s\n",
+               error("unexpected data type: expected %s, got %s",
                      expout, gotout);
            }
            if (expected_format && expected_format != actual_format) {
-               error("unexpected data format: expected %d-bit, got %d-bit\n",
+               error("unexpected data format: expected %d-bit, got %d-bit",
                      expected_format, actual_format);
            }
        }