search for: strcat

Displaying 20 results from an estimated 237 matches for "strcat".

2001 Oct 31
1
nmblookup status meaning
...ind docs ? printf("%s <%x> - %s\n", cleanname, status[i].type, // <----- this one node_status_flags(status[i].flags)); char *node_status_flags(unsigned char flags) { static fstring ret; strcpy(ret,""); // and these flags strcat(ret, (flags & 0x80) ? "<GROUP> " : " "); if ((flags & 0x60) == 0x00) strcat(ret,"B "); if ((flags & 0x60) == 0x20) strcat(ret,"P "); if ((flags & 0x60) == 0x40) strcat(ret,"M "); if ((flags & 0x60) == 0x6...
2008 Jan 06
4
[LLVMdev] Another memory fun
...orld!\00" ; <[8 x i8]*> [#uses=1] @.str2 = internal global [8 x i8] c"hello, \00" ; <[8 x i8]*> [#uses=1] @.str7 = internal global [21 x i8] c"welcome to out hall!\00" ; <[21 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %.str3 = getelementptr [8 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=1] %.str4 = getelementptr [8 x i8]* @.str1, i64 0, i64 0 ; <i8*> [#uses=1] %tmp5...
2008 Jan 06
0
[LLVMdev] Another memory fun
...7 x i8] c"hello \00" ; <[7 x i8]*> [#uses=1] @.str7 = internal global [7 x i8] c"father\00" ; <[7 x i8]*> [#uses=1] @.str8 = internal global [8 x i8] c"mother \00" ; <[8 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare i32 @strlen(i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %str3 = getelementptr [7 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=2] %str4 = getelementptr [6 x i8]* @.str1, i64 0, i64 0 ; <i8*&g...
2008 Jan 06
4
[LLVMdev] Another memory fun
Yes, I agree with you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080106/efb1c465/attachment.html>
2007 Oct 17
3
Adding a "boot from local hard disk" option to syslinux menu, booted from USB
...LL; openconsole(&dev_null_r, &dev_stdcon_w); /*if ( argc < 2 ) { error("Usage: chain.c32 (hd|fd)# [partition]\n"); goto bail; }*/ strcpy (logrc, "Log: "); sprintf(logs, "Starting chainsd - chain see disk only.\n"); printf(logs); strcat(logrc, logs); //drivename = argv[1]; //partition = argv[2]; /* Possibly null */ endds = argv[1]; endps = argv[2]; /* Possibly null */ waittotals = argv[3]; /* Possibly null */ if ( endds ) endd = strtoul(endds, NULL, 0); else endd = 1; if ( endps ) endp = strtoul(endps...
2004 May 18
1
Dial and MeetMe on the same channel
...as below but it seems to me that only the first command that is called in the agi is executed. ........... // Pr?paration de la commande pour l'appel du client fprintf(stderr,"%s%s",numtocall," is the number to call\n"); strcpy(cmd,"EXEC Dial "); strcat(cmd,numtocall); //numtocall is a variable quote from teh database strcat(cmd," 60"); // Ex?cution de la commande et lib?ration du buffer fprintf(stderr,"%s\n",cmd); printf("%s\n",cmd); fflush(stdout); resultcode = checkresult(); // Mise en c...
2008 Jan 06
4
[LLVMdev] Another memory fun
...7 x i8] c"hello \00" ; <[7 x i8]*> [#uses=1] @.str7 = internal global [7 x i8] c"father\00" ; <[7 x i8]*> [#uses=1] @.str8 = internal global [8 x i8] c"mother \00" ; <[8 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare i32 @strlen(i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %str3 = getelementptr [7 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=2] %str4 = getelementptr [6 x i8]* @.str1, i64 0, i64 0 ; <i8*&g...
2008 Jan 06
0
[LLVMdev] Another memory fun
It's invalid for the same reason that char *foobar = strcat("foo", "bar"); is invalid in C. Please make sure you understand what you're asking LLVM to do before going any further down this path. A good approach is to write out the correct code in C and then use llvm-gcc (or the demo page at http://llvm.org/demo ) to see what it l...
2001 Dec 09
1
(fwd) Re: [Possible BUG]: Wine-20011108
...aid before.. If I only knew how to copy and paste from > : winedebug I'd show you the backtrace. The problem is > : in heap.c, line 353 - something on this line causes > : signal 11 to be generated. > Running with --debugmsg +heap you get something like: > 0806feb0:Call msvcrt.strcat(403a4005 "Cygwin/bin/",403a3fb0 > "/pinco/panco") ret=004014f2 > 0806feb0:Ret msvcrt.strcat() retval=403a4005 ret=004014f2 > 0806feb0:Call msvcrt.free(403a3fac) ret=00401501 > 0806feb0:Call kernel32.HeapFree(403a0000,00000000,403a3fac) > ret=42563e35 > err:hea...
2012 Jan 19
4
[LLVMdev] What happened to "malloc" in LLVM 3.0 IR?
...; [#uses=1] %2 = add i32 %_totallen, %_lenR ; <i32> [#uses=1] %_malloc = malloc i8, i32 %2 ; <i8*> [#uses=1] %_strcpy = call i8* @strcpy(i8* %_malloc, i8* getelementptr inbounds ([2 x i8]* @_stringexpr4, i32 0, i32 0)) ; <i8*> [#uses=1] %_strcat = call i8* @strcat(i8* %_strcpy, i8* %1) ; <i8*> [#uses=2] %_lenL5 = call i32 @strlen(i8* %_strcat) ; <i32> [#uses=1] %_lenR6 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8]* @_stringexpr2, i32 0, i32 0)) ; <i32> [#uses=1] %_totallen7 = add i32 %_lenL5, 1...
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
...rything else fails. trace failures! int loadDll() { static char lTraceBuffer[TRACEBUFSIZE]; // get entry-point if (getenv ("R_HOME")) { // BDR OutputDebugString("from env:"); char DLLlocation[MAX_PATH]; strcpy(DLLlocation, getenv("R_HOME")); strcat(DLLlocation, "\\bin\\"); strcat(DLLlocation, RDLL); OutputDebugString(DLLlocation); m_ProxyModule = LoadLibraryEx (DLLlocation, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); // trace failure! if (m_ProxyModule == 0) { sprintf(lTraceBuffer,"R_HOME set to \&quot...
2010 May 12
1
[PATCH] guestfish -i and virt-inspector work on filenames containing spaces (RHBZ#507810).
...if (strlen (cmd) + strlen (argv[optind]) + strlen (real_argv0) + 60 - >= sizeof cmd) { - fprintf (stderr, - _("%s: virt-inspector command too long for fixed-size buffer\n"), - program_name); - exit (EXIT_FAILURE); - } - strcat (cmd, " '"); - strcat (cmd, argv[optind]); - strcat (cmd, "'"); + fputc (' ', fp); + print_shell_quote (fp, argv[optind]); optind++; } if (read_only) - strcat (cmd, " --ro-fish"); + fprintf (fp, " --...
2004 Sep 10
2
Proposed change to code that handles output_prefix
On line 734 in src/flac/main.c, ver 1.77, change: strcat(outfilename, infilename); to strcat(outfilename, flac__file_get_basename(infilename)); I did this change because I was calling flac with an input filename with a path on the front of it, and I wanted the output file to go to a different location, such as this: flac --best --output-prefix /usr/s...
2012 Jan 19
0
[LLVMdev] What happened to "malloc" in LLVM 3.0 IR?
...add i32 %_totallen, %_lenR ;<i32> [#uses=1] > %_malloc = malloc i8, i32 %2 ;<i8*> [#uses=1] > %_strcpy = call i8* @strcpy(i8* %_malloc, i8* getelementptr inbounds ([2 x i8]* @_stringexpr4, i32 0, i32 0)) ;<i8*> [#uses=1] > %_strcat = call i8* @strcat(i8* %_strcpy, i8* %1) ;<i8*> [#uses=2] > %_lenL5 = call i32 @strlen(i8* %_strcat) ;<i32> [#uses=1] > %_lenR6 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8]* @_stringexpr2, i32 0, i32 0)) ;<i32> [#uses=1] > %_totallen7 = add i...
2008 Jan 06
0
[LLVMdev] Another memory fun
Zalunin Pavel wrote: > hm.... I think, that is valid in c [snip] > I tried decompile code: > main(int argc, char **argv) { > char str1[] = "mother "; > strcat(str1, "father"); > return 0; > } > This is valid C but you forget that str1 is not magically expanded by strcat. It starts out as, and remains a char array with 8 elements. > decompiler gives to me code, in this code string " mother\0" presents as: > > %...
2001 Oct 20
1
More changes to the win32 build environment
I made some changes to the win32 build environment. The build scripts now use msdev to build all the projects (kind of like Jack originally had it.) If building with nmake and makefiles is desired, such as if it is expected that the sdk will be copied to an environment which has a version of MSVC older then version 6 -- simply set the environment variable USENMAKE to any value and the
2004 Mar 30
2
Asterisk Security Audit?
Has Asterisk ever been audited for common security holes, such as buffer overruns? A quick grep through the source for routines that should never be used, like strcpy, strcat, etc., reveals a lot of it. I fear I fear. Has anyone flung pathology at IAX2 to see if it stands up to malformed packets? (This is always an issue when you have a protocol that only a small number of programs use ...) I hope I'm wrong, but I have a very queasy feeling ... [We already know t...
2007 Jan 25
5
Custom com32
Hi all I've written a basic COM32 module that checks (using the DMI example code) the product and BIOS and if the BIOS is not at the required level, is supposed to exit and boot using a DOS floppy image to flash the BIOS. The problem is that I can't work out how to call the DOS floppy image. Looking at the website, I see "Run Command" AX=0003H via int 22. The image name will
2017 Aug 23
1
Patch: acl list from ldap must be possible to have multiple values, that combined in one comma separated list
...ne auth_request_set_null_field(auth_request, name); continue; } + if (strcmp(name,"userdb_acl_groups")==0) { + int i = 1; + while (values[i] != NULL) { + strcat(values[0],","); + strcat(values[0],values[i]); + i++; + } + auth_request_log_warning(auth_request,AUTH_SUBSYS_DB, + "Multiple values found for '%s', " +...
2004 Jul 16
3
rd2dvi bug on windoze?
...problem? when i do dos> rcmd rd2dvi --pdf my-package-name i get dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directory might the problem be in (double back slashes rather than forward slashes) R-1.9.1\src\gnuwin32\front-ends\rcmdfn.c(251): strcat(cmd, RHome); strcat(cmd, "/bin/Rd2dvi.sh"); > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 9.1 year 2004 month 06 day 21 language R @windoze xp sp1 h. ---------------------------------- Hiro...