@@ -321,10 +321,10 @@ COUNT truename(const char FAR * src, char * dest, COUNT mode)
321321 so we know src in the form of X:?
322322 fail if anything other than no path or path is \DEV\
323323 */
324- char drivesep [] = "\\/" ;
325324 const char FAR * s = src + 2 ;
326- const char * d = strchr (drivesep , * s ); /* ?path starts with \ or / */
327-
325+ char c = * s ;
326+
327+ if ( c != '\\' && c != '/' ) c = '\0' ;
328328 /* could be 1 letter devicename, don't go scanning random memory */
329329 if (* (src + 3 ) != '\0' )
330330 {
@@ -336,7 +336,7 @@ COUNT truename(const char FAR * src, char * dest, COUNT mode)
336336 s = NULL ;
337337 }
338338
339- if (d == NULL )
339+ if (c == '\0' )
340340 {
341341 /* either X:devicename or X:path\devicename */
342342 if (s != NULL ) goto invalid_path ;
@@ -712,7 +712,7 @@ if exist report.out del report.out
712712cmdspy stop
713713cmdspy flush
714714cmdspy restart
715- int ax=0x6000 -buf ds:si="abcöflkgsxkf\0" -buf es:di="%256s" -int 0x21 -d es:di:128 >spy_int.out
715+ int ax=0x6000 -buf ds:si="abcöflkgsxkf\0" -buf es:di="%256s" -int 0x21 -d es:di:128 >spy_int.out
716716cmdspy stop
717717cmdspy report report.out
718718more report.out
@@ -732,11 +732,11 @@ more report.out
7327321123: IN: C:\TOOL\INT.COM [FAIL 0001]
7337331123: OUT: C:\INTRSPY\SPY_INT.OUT
7347341123: orig buffer: C:\TOOL\INT.COM
735- 1123: IN: abcöflkgsxkf [FAIL 0001]
735+ 1123: IN: abcöflkgsxkf [FAIL 0001]
7367361123: OUT: C:\TOOL\INT.COM
737- 1123: orig buffer: abcöflkgsxkf
737+ 1123: orig buffer: abcöflkgsxkf
7387381123: IN: C:\INTRSPY\SPY_INT.BAT [FAIL 0001]
739- 1123: OUT: C:\INTRSPY\ABCÖFLKG
739+ 1123: OUT: C:\INTRSPY\ABCÖFLKG
7407401123: orig buffer: C:\INTRSPY\SPY_INT.BAT
7417411123: IN: cmdspy.??? [FAIL 0001]
7427421123: OUT: C:\INTRSPY
@@ -758,7 +758,7 @@ DOSERR: 0000 (0)
758758
759759*<es:di:128> {
76076043(C) 3A(:) 5C(\) 49(I) 4E(N) 54(T) 52(R) 53(S) 50(P) 59(Y) 5C(\) 41(A)
761- 42(B) 43(C) 99(Ö) 46(F) 4C(L) 4B(K) 47(G) 00(.) 3D(=) 30(0) 30(0) 30(0)
761+ 42(B) 43(C) 99(Ö) 46(F) 4C(L) 4B(K) 47(G) 00(.) 3D(=) 30(0) 30(0) 30(0)
76276230(0) 20( ) 20( ) 20( ) 43(C) 58(X) 3D(=) 30(0) 30(0) 30(0) 30(0) 28(()
76376330(0) 29()) 20( ) 32(2) 38(8) 28(() 28(() 29()) 20( ) 33(3) 30(0) 28(()
76476430(0) 29()) 20( ) 32(2) 39(9) 28(() 29()) 29()) 20( ) 32(2) 30(0) 28(()
0 commit comments