Changeset cdfcdb in git for Singular/fehelp.cc
- Timestamp:
- May 31, 2023, 11:16:52 AM (12 months ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 8eeddafc83e9d052d7ffa21597c4229513b7e886
- Parents:
- e4953e241ca9796e2dcaa9e6228345429b6f4a96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fehelp.cc
re4953e rcdfcdb 934 934 if (*p=='H') 935 935 #ifdef SINGULAR_4_2 936 s printf(temp,"%s/%d-%d/%s", htmldir,936 snprintf(temp,256,"%s/%d-%d/%s", htmldir, 937 937 SINGULAR_VERSION/1000, 938 938 (SINGULAR_VERSION % 1000)/100, 939 939 hentry->url); 940 940 else 941 s printf(temp,"%s/%s", htmldir, hentry->url);941 snprintf(temp,256,"%s/%s", htmldir, hentry->url); 942 942 #else 943 s printf(temp,"%s/%d-%d-%d/%s", htmldir,943 snprintf(temp,256,"%s/%d-%d-%d/%s", htmldir, 944 944 SINGULAR_VERSION/1000, 945 945 (SINGULAR_VERSION % 1000)/100, … … 947 947 hentry->url); 948 948 else 949 s printf(temp,"%s/%s", htmldir, hentry->url);949 snprintf(temp,256,"%s/%s", htmldir, hentry->url); 950 950 #endif 951 951 } … … 953 953 if (*p=='H') 954 954 #ifdef SINGULAR_4_2 955 s printf(temp,"%s/%d-%d/index.htm", htmldir,955 snprintf(temp,256,"%s/%d-%d/index.htm", htmldir, 956 956 SINGULAR_VERSION/1000, 957 957 (SINGULAR_VERSION % 1000)/100 958 958 ); 959 959 #else 960 s printf(temp,"%s/%d-%d-%d/index.htm", htmldir,960 snprintf(temp,256,"%s/%d-%d-%d/index.htm", htmldir, 961 961 SINGULAR_VERSION/1000, 962 962 (SINGULAR_VERSION % 1000)/100, … … 965 965 #endif 966 966 else 967 s printf(temp,"%s/index.htm", htmldir);967 snprintf(temp,256,"%s/index.htm", htmldir); 968 968 } 969 969 #endif … … 998 998 char temp[256]; 999 999 if ((hentry!=NULL) && (*(hentry->node) != '\0')) 1000 s printf(temp,"%s",hentry->node);1000 snprintf(temp,256,"%s",hentry->node); 1001 1001 //else if ((hentry!=NULL) && (hentry->key!=NULL)) 1002 // s printf(temp,"Index '%s'",hentry->key);1002 // snprintf(temp,256,"Index '%s'",hentry->key); 1003 1003 else 1004 s printf(temp,"Top");1004 snprintf(temp,256,"Top"); 1005 1005 strcat(sys,temp); 1006 1006 i=strlen(sys); … … 1010 1010 { 1011 1011 char temp[256]; 1012 s printf(temp,"%d-%d-%d",SINGULAR_VERSION/1000,1012 snprintf(temp,256,"%d-%d-%d",SINGULAR_VERSION/1000, 1013 1013 (SINGULAR_VERSION % 1000)/100, 1014 1014 (SINGULAR_VERSION % 100)/10); … … 1145 1145 p++; 1146 1146 *p='\0'; 1147 (void)sprintf(String, " %s ", str);1147 snprintf(String,IDX_LEN+1, " %s ", str); 1148 1148 } 1149 1149 else 1150 1150 { 1151 (void)sprintf(String, " %s", str);1151 snprintf(String,IDX_LEN+1, " %s", str); 1152 1152 } 1153 1153 … … 1175 1175 { 1176 1176 #ifdef SINGULAR_4_2 1177 s printf(temp,"%s/%d-%d/%s", htmldir,1177 snprintf(temp,256,"%s/%d-%d/%s", htmldir, 1178 1178 SINGULAR_VERSION/1000, 1179 1179 (SINGULAR_VERSION % 1000)/100, 1180 1180 #else 1181 s printf(temp,"%s/%d-%d-%d/%s", htmldir,1181 snprintf(temp,256,"%s/%d-%d-%d/%s", htmldir, 1182 1182 SINGULAR_VERSION/1000, 1183 1183 (SINGULAR_VERSION % 1000)/100,
Note: See TracChangeset
for help on using the changeset viewer.