From 6b7af05a7fd530c48c72d25ba9a1e9fb9c8264af Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Tue, 22 Jul 2025 18:46:05 +0800 Subject: [PATCH] Update `openSUSE` not use R --- src/recipe/os/openSUSE.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/recipe/os/openSUSE.c b/src/recipe/os/openSUSE.c index 7f02eb3..bffdf00 100644 --- a/src/recipe/os/openSUSE.c +++ b/src/recipe/os/openSUSE.c @@ -5,7 +5,7 @@ * Contributors : Aoran Zeng * Created On : <2023-09-17> * Major Revision : 1 - * Last Modified : <2025-07-21> + * Last Modified : <2025-07-22> * ------------------------------------------------------------*/ #include "rawstr4c.h" @@ -44,16 +44,16 @@ os_opensuse_setsrc (char *option) while (1) { chsrc_note2 ("请选择你的操作系统为:"); - printf ("%s", R"( -1. openSUSE Leap -2. openSUSE Tumbleweed - -==> )"); + printf ("%s", + "1. openSUSE Leap\n" + "2. openSUSE Tumbleweed\n" + "\n" + "==> "); int choice = 0; /* 接受到一个数字时返回1,非法为0,流结束为-1 */ - if (scanf("%d", &choice) != 1) + if (scanf ("%d", &choice) != 1) { /* 清除输入缓冲区 */ int ch;