gnupg2/gnupg-1.9.17-lvalue.patch
2005-07-02 08:39:51 +00:00

16 lines
419 B
Diff

--- g10/misc.c~ 2005-06-15 18:34:29.000000000 +0300
+++ g10/misc.c 2005-07-01 21:02:05.000000000 +0300
@@ -986,10 +986,10 @@
}
else {
int rc;
- char *buffer;
+ unsigned char *buffer;
rc = gcry_mpi_aprint( GCRYMPI_FMT_HEX,
- &(unsigned char*)buffer, NULL, a );
+ &buffer, NULL, a );
assert( !rc );
fputs( buffer, fp );
n += strlen(buffer);