We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfc66f commit a987747Copy full SHA for a987747
ssu_crond.c
@@ -193,7 +193,10 @@ void set_reservation_time_table(char *period, int period_type, bool *reservation
193
memset(target, 0, BUFFER_SIZE);
194
memset(unit, 0, BUFFER_SIZE);
195
196
- sscanf(period_token[i], "%[^/(-)]%c%s", target, &operator, unit); // 슬래시(/) 우선 토큰 분리
+ if (strchr(period_token[i], '-') && strchr(period_token[i], '/')) // 슬래시와 범위가 둘다 포함되는 경우
197
+ sscanf(period_token[i], "%[^/]%c%s", target, &operator, unit);
198
+ else // 둘중 하나만 포함되는 경우
199
+ sscanf(period_token[i], "%[^-/]%c%s", target, &operator, unit);
200
#ifdef DEBUG
201
printf("set_reservation_time_table: target = %s, operator = %c, unit = %s\n", target, operator, unit);
202
#endif
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments