diff enc-text/gsm7.c @ 8:265b8103530c

sms-encode-text: emit empty messages as ""
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 05 Aug 2023 06:40:50 +0000
parents a16b1b9728f6
children e56bb9f09ff1
line wrap: on
line diff
--- a/enc-text/gsm7.c	Sat Aug 05 06:32:37 2023 +0000
+++ b/enc-text/gsm7.c	Sat Aug 05 06:40:50 2023 +0000
@@ -42,8 +42,10 @@
 		fputs("dcs 0 septet\nmsg ", stdout);
 		if (msgtext_gsmlen)
 			emit_hex_out(msgtext_gsm7, msgtext_gsmlen, stdout);
-		else
-			fputs("empty", stdout);
+		else {
+			putchar('"');
+			putchar('"');
+		}
 		putchar('\n');
 		exit(0);
 	}