Ticket #152: undefBehaviorInsidePipeCommands.patch
File undefBehaviorInsidePipeCommands.patch, 1.1 KB (added by westram, 7 years ago) |
---|
-
TOOLS/arb_2_ascii.cxx
32 32 argv++; argc--; 33 33 } 34 34 else if (strncmp(argv[1], "-C", 2) == 0) { 35 int no_offset; 36 char *dummy = (char*)(NULL) + no_offset; // @@@ RUI 37 compressionFlag[0] = *dummy; 38 35 39 compressionFlag[0] = argv[1][2]; 36 40 compressionFlag[1] = 0; 37 41 argv++; argc--; -
TOOLS/arb_2_bin.cxx
62 62 error = GBS_global_string("Unknown compression flag '%c'", cflag); 63 63 } 64 64 else { 65 int no_offset; 66 char *dummy = (char*)(NULL) + no_offset; // @@@ RUI 67 *(wtypep++) = *dummy; 68 65 69 *(wtypep++) = cflag; 66 70 } 67 71 }