[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-51
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-510-g648edfa |
Date: |
Mon, 29 Apr 2013 08:44:11 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 648edfa93ef31e41a3c0b0b77c371132aeb3a816 (commit)
from 5e726d374afe1f79f40049b7fa23db30cbe9e976 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=648edfa93ef31e41a3c0b0b77c371132aeb3a816
commit 648edfa93ef31e41a3c0b0b77c371132aeb3a816
Author: Daniele Forsi <address@hidden>
Date: Mon Apr 29 10:43:25 2013 +0200
Return more specific error codes
diff --git a/gnokii/gnokii-utils.c b/gnokii/gnokii-utils.c
index e0fc69e..d272ba6 100644
--- a/gnokii/gnokii-utils.c
+++ b/gnokii/gnokii-utils.c
@@ -129,13 +129,13 @@ gn_error readtext(gn_sms_user_data *udata)
if (chars_read == 0) {
fprintf(stderr, _("Couldn't read from stdin!\n"));
- return GN_ERR_INTERNALERROR;
+ return GN_ERR_FAILED;
}
if (udata->type != GN_SMS_DATA_iMelody && chars_read > 0 &&
message_buffer[chars_read - 1] == '\n')
message_buffer[--chars_read] = 0;
if (chars_read > (sizeof(udata->u.text) - 1)) {
fprintf(stderr, _("Input too long! (%d, maximum is %d)\n"),
chars_read, (int)(sizeof(udata->u.text) - 1));
- return GN_ERR_INTERNALERROR;
+ return GN_ERR_ENTRYTOOLONG;
}
udata->length = snprintf(udata->u.text, sizeof(udata->u.text), "%s",
message_buffer);
-----------------------------------------------------------------------
Summary of changes:
gnokii/gnokii-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-510-g648edfa,
Daniele Forsi <=