equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
199 if (buf != stackBuf) { |
199 if (buf != stackBuf) { |
200 free(buf); |
200 free(buf); |
201 } |
201 } |
202 } |
202 } |
203 |
203 |
204 void |
204 JNIEXPORT void JNICALL |
205 throwFileNotFoundException(JNIEnv *env, jstring path) |
205 throwFileNotFoundException(JNIEnv *env, jstring path) |
206 { |
206 { |
207 char buf[256]; |
207 char buf[256]; |
208 size_t n; |
208 size_t n; |
209 jobject x; |
209 jobject x; |