Explorar el Código

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

Guillem Jover hace 16 años
padre
commit
c1d7debca6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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++;