[frogr] Write the '\0' in the right place when converting exif dates to iso8601
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Write the '\0' in the right place when converting exif dates to iso8601
- Date: Sat, 11 Oct 2014 15:42:57 +0000 (UTC)
commit 403c4795c2df82da6e4d2014f24c6d3d4f36f9b7
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sat Oct 11 16:30:38 2014 +0100
Write the '\0' in the right place when converting exif dates to iso8601
src/frogr-controller.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 7a53cce..aaf7c78 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1392,7 +1392,7 @@ _set_date_taken_as_posted_for_picture (FrogrController *self, UploadOnePictureDa
GTimeVal picture_timeval;
const gchar *picture_date_str = NULL;
gchar *debug_msg = NULL;
- gchar date_iso8601[21];
+ gchar date_iso8601[20];
picture = uop_data->picture;
picture_date_str = frogr_picture_get_datetime (picture);
@@ -1407,7 +1407,7 @@ _set_date_taken_as_posted_for_picture (FrogrController *self, UploadOnePictureDa
date_iso8601[10] = 'T';
date_iso8601[4] = '-';
date_iso8601[7] = '-';
- date_iso8601[20] = '\0';
+ date_iso8601[19] = '\0';
if (!g_time_val_from_iso8601 (date_iso8601, &picture_timeval))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]