Sfoglia il codice sorgente

libdpkg: Do not lose const qualifier on a cast in path_quote_filename

Guillem Jover 16 anni fa
parent
commit
c1d7debca6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/dpkg/path.c

+ 1 - 1
lib/dpkg/path.c

@@ -97,7 +97,7 @@ path_quote_filename(char *dst, const char *src, size_t size)
 			} else {
 				if (size > 4) {
 					sprintf(dst, "\\%03o",
-					        *(unsigned char *)src);
+					        *(const unsigned char *)src);
 					size -= 4;
 					dst += 4;
 					src++;