]> err.no Git - dpkg/commitdiff
Change formatting to match the rest of the file.
authorIan Jackson <iwj@ubuntu.com>
Tue, 31 Jul 2007 01:17:02 +0000 (04:17 +0300)
committerGuillem Jover <guillem@debian.org>
Tue, 7 Aug 2007 03:22:34 +0000 (06:22 +0300)
ChangeLog
src/archives.c

index ab2de9fdb6dd582955e23aeffe1d7c653e7d9d10..34e3038469b87e80bde9b5bc425033696252e737 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-31  Ian Jackson  <iwj@ubuntu.com>
+
+       * src/archives.c (quote_filename): Change formatting to match the
+       rest of the file (tab -> 2 spaces).
+
 2007-07-25  Guillem Jover  <guillem@debian.org>
 
        * scripts/changelog/debian.pl: Switch from 'dpkg-gettext.pl' to
index 38e2b56a36b2a8eb08f83625d8eca65b5f36cb0d..826cbf3d6fa6bd5dfda4eac76d28a9eef4ff620f 100644 (file)
@@ -81,39 +81,39 @@ int cflict_index = 0;
 static char *
 quote_filename(char *buf, int size, char *s)
 {
-       char *r = buf;
-       while (size > 0) {
-               switch (*s) {
-               case '\0':
-                       *buf = '\0';
-                       return r;
-               case '\\':
-                       *buf++ = '\\';
-                       *buf++ = '\\';
-                       size -= 2;
-                       break;
-               default:
-                       if (((*s)&0x80) == 0) {
-                               *buf++ = *s++;
-                               --size;
-                       } else {
-                               if (size > 4) {
-                                       sprintf(buf, "\\%03o",
-                                               *(unsigned char *)s);
-                                       size -= 4;
-                                       buf += 4;
-                                       s++;
-                               } else {
-                                       /* buffer full */
-                                       *buf = '\0'; /* XXX */
-                                       return r;
-                               }
-                       }
-               }
-       }
-       *buf = '\0'; /* XXX */
-       return r;
+  char *r = buf;
 
+  while (size > 0) {
+    switch (*s) {
+    case '\0':
+      *buf = '\0';
+      return r;
+    case '\\':
+      *buf++ = '\\';
+      *buf++ = '\\';
+      size -= 2;
+      break;
+    default:
+      if (((*s) & 0x80) == 0) {
+        *buf++ = *s++;
+        --size;
+      } else {
+        if (size > 4) {
+          sprintf(buf, "\\%03o", *(unsigned char *)s);
+          size -= 4;
+          buf += 4;
+          s++;
+        } else {
+          /* buffer full */
+          *buf = '\0'; /* XXX */
+          return r;
+        }
+      }
+    }
+  }
+  *buf = '\0'; /* XXX */
+
+  return r;
 }
 
 /* special routine to handle partial reads from the tarfile */