ports/graphics/jhead/patches/patch-gpsinfo_c

15 lines
482 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: gpsinfo.c
--- gpsinfo.c.orig
+++ gpsinfo.c
@@ -168,8 +168,8 @@ void ProcessGpsInfo(unsigned char * DirStart, unsigned
break;
case TAG_GPS_ALT:
- snprintf(ImageInfo.GpsAlt+1, sizeof(ImageInfo.GpsAlt)-1,
- "%.2fm", ConvertAnyFormat(ValuePtr, Format));
+ snprintf(ImageInfo.GpsAlt+1, sizeof(ImageInfo.GpsAlt)+1,
+ "%.dm", Get32s(ValuePtr));
break;
}