]> git.pld-linux.org Git - packages/openjdk9.git/blob - format_strings.patch
some progress with building
[packages/openjdk9.git] / format_strings.patch
1 --- jdk8-jdk8-b132/jdk/src/share/native/com/sun/java/util/jar/pack/utils.cpp.orig       2015-09-17 14:58:44.000000000 +0200
2 +++ jdk8-jdk8-b132/jdk/src/share/native/com/sun/java/util/jar/pack/utils.cpp    2015-09-17 14:59:36.000000000 +0200
3 @@ -81,7 +81,7 @@
4  int assert_failed(const char* p) {
5    char message[1<<12];
6    sprintf(message, "@assert failed: %s\n", p);
7 -  fprintf(stdout, 1+message);
8 +  fputs(1+message, stdout);
9    breakpoint();
10    unpack_abort(message);
11    return 0;
12 --- jdk8-jdk8-b132/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp.orig      2015-09-17 14:57:57.000000000 +0200
13 +++ jdk8-jdk8-b132/jdk/src/share/native/com/sun/java/util/jar/pack/unpack.cpp   2015-09-17 15:01:09.000000000 +0200
14 @@ -3712,7 +3712,7 @@
15    default:
16      if (nrefs == 0) {
17        buf = getbuf(20);
18 -      sprintf((char*)buf.ptr, TAG_NAME[tag]);
19 +      strcpy((char*)buf.ptr, TAG_NAME[tag]);
20      } else if (nrefs == 1) {
21        return refs[0]->string();
22      } else {
This page took 0.062262 seconds and 4 git commands to generate.