Fix sizeof warnings on malloc

Although sizeof(short) and sizeof(unsigned short)
should have the same value; use the correct type
to suppress the warning.

Bug: 261919363
Test: make tidy-packages-apps-Gallery2-jni_subset
Change-Id: I8244fe20e613d0dea2a74753deec64346d5e9f5b
2 files changed