Programming :: Find Where Error - After "strcat", Data All Become 0x00

Oct 18, 2010

I create a http client to send data to server. The code :

int main(int argc, char *argv[])
int sockfd;
char buffer[1024];
struct sockaddr_in server_addr;
//struct hostent *host;
int portnumber,nbytes;


View 3 Replies


Programming :: Serial Port Communication Program Always Lose One Byte Data: 0x00?

Dec 13, 2009

I wrote a serial port communication program to access a equipment.

int main(void)
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;


View 2 Replies View Related

Programming :: Variadic Strcat In C?

Feb 10, 2010

I think that it is a pity to manage string programming in C. So, I though to create a variadic function (like printf) but it will not print the result on screen but will malloc an string containing all the string passed in parameters.

But because it is be habitual to concatenate more than two strings, I think that someone has already develop this function. Does somebody know if the function I'm looking for already exists in a library?

View 13 Replies View Related

Programming :: Socket Programming: Insertion Of 0x00 Into The Stream?

Dec 5, 2010

When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.

# ./serv &
[1] 6895
# ./EUG
EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31
EUG: Data - #Bytes transmitted: 6
./serv: Here is the message: '5'


View 3 Replies View Related

CentOS 5 :: # Rpm -q Php Error: ':' Faltante (se Encontr� 0x00) En /usr/lib/rpm/rpmrc:2?

Dec 15, 2010

someone knows what this error is due# rpm -q php error: ':' faltante (se encontr� 0x00) en /usr/lib/rpm/rpmrc:2

View 1 Replies View Related

Programming :: Memory Leaks - Glibc Detected - ./SuffixTree: Malloc() - Memory Corruption - 0x00

Mar 21, 2011

I am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.

I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'


Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.

View 12 Replies View Related

Programming :: Find Command With Standard Error Output And Mail Error File

Nov 11, 2010

We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to What would be the code for this issue to add it to our find command in the same bash shell script??

View 2 Replies View Related

Programming :: Rectify This Error: RCC: Error In 'appchooser.qrc': Cannot Find File 'akregato?

Apr 12, 2011

how to rectify these errors..
RCC: Error in 'appchooser.qrc': Cannot find file 'accessories-dictionary.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'akregator.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'digikam.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'k3b.png'
RCC: Warning: No resources in 'appchooser.qrc'.

and my .qrc file is like this

<!DOCTYPE RCC><RCC version="1.0">

View 3 Replies View Related

Ubuntu Installation :: Error - The Boot Configuration Data Store Could Not Be Opened - The System Cannot Find The File Specified

May 24, 2011

every-time i try to install, i get this

Error executing command
>>command=C:Windowssysnativecdedit.exe /create/d Ubuntu/application bootsector
>>stderr=The boot configuration data store could not be opened
The system cannot find the file specified

View 1 Replies View Related

Programming :: Stat On Cifs - Fails With Error No 75 - Error Shows "Value Too Large For Defined Data Type"

Dec 29, 2010

i have Ubuntu10.10 (kernel-2.6.35-22-generic) installed. struct stat StatBuff;


I have mounted a windows share folder on /mnt. When i gave any directory within /mnt/ to stat function it fails with errorno 75. perror shows "Value too large for defined data type". Example 1 is fail but Example 2 works fine.

View 7 Replies View Related

Programming :: Proofread Prompt / Small Error Can't Find?

Jun 1, 2011

I've set the following as my prompt:... can't post the string due to the 15 post rule. how helpful....

Everything looks fine initially.
1- It sets the username and host in back on green text.
2- It then changes to an off-white an prints the command number for the terminal.
3- Next, it prints the working directory.
4- Finally is prints a ">" character and a space. it looks like this (hostname/un edited & image enlarged slightly to make it easier to read.)

The problem occurs when I try to "up arrow" to reuse and/or edit a prior command. It prints the prior command fine, but if I arrow over to edit the command sometimes the first character can not be deleted from displaying

I'd love to post 2 screen-shots I took to show the problem but.. 15 posts?

View 1 Replies View Related

Programming :: Get Data From Serial Port Function Read() Blocks When Data Not Available?

Jun 11, 2009

I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:

char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;


View 1 Replies View Related

Programming :: ARPACK++ - Error "Matrix Data Contains Inconsistencies"

Jun 26, 2011

In the following code, I am trying to define a matrix in CCS (which is equivalent to CSR for a symmetric matrix, right ?) in ARPACK++.
I have installed and patched ARPACK++. (The matrix is not sparse, but still it should not give an error)


Why is this so ? I have checked the values of ia and ja by running intel MKl on the matrix to find the CSR (again, CSR=CCS for symmetric matrix, right ?--I am asking this because ARPACK++ uses CCS, not CSR), and the values are the same. Is this some problem of 0 and 1 indexing ? Does ARPACK++ use 1 indexing?

View 1 Replies View Related

Programming :: Data Directory In Automake - Data Is Always Read-only ?

May 9, 2010

I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.

How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.

View 1 Replies View Related

Programming :: Volatile Sig_atomic_t Int Terminazione=0 - Error "two Or More Data Types In Declaration Specifier"

Jul 16, 2010

I need to have a global variable PHP Code: volatilesig_atomic_tintTerminazione=0;but I get the error error: two or more data types in declaration specifier even if I have included signal.h.

View 2 Replies View Related

OpenSUSE :: Removing A Repo - Error "can't Find The Data For The 'problem' Repo"

Nov 20, 2010

I wasn't paying proper attention when adding a repo to yast and need to find the file were the info is saved to delete this. The problem is that whenever i use yast it comes up with an error code saying that it can't find the data for the 'problem' repo. Have tried zypper rm but that comes up with a similar error advising that the data is in a format that was not expected. My thinking is to track the file were the yast repo source details are saved, delete this and then just add the repos that i use back.

View 6 Replies View Related

Ubuntu :: Error "Could Not Find A Compatible Opengl Display Resolution. Please Check Your Driver Configuration. (Error: Couldn't Find A Matching GLX Visual)"

Jul 22, 2011

I am having issues with 3d I am trying to start up a game called auteria but it displays this error "Could not find a compatible opengl display resolution. Please check your driver configuration. (Error: Couldn't find a matching GLX visual)" I am on ubuntu 10.10 could anybody give me a solution on how to fix this issue?

View 5 Replies View Related

Programming :: Convert The String Data Type To Other Primitive Data Type?

Mar 4, 2011

I am trying to generic way to convert the string datatype to other primitive data type. To achieve, i used Template . But i getting error and couldn't resolve the issue and error reported is also clueless.

#include <vector>
#include <iostream>
#include <string>


View 7 Replies View Related

Red Hat / Fedora :: Updating Software Error In Version 12 - Error Getting Repository Data For Installed

Apr 12, 2010


How do I fix this?

View 5 Replies View Related

OpenSUSE :: Recover Data Form Old 5.25 Floppies - ERROR: Cannot Read `/dev/fd0' (Input/output Error)

Mar 15, 2010

I don't know the format of these old floppie disks, ive tried


PC8-248suse:~ # file -s /dev/fd0
/dev/fd0: ERROR: cannot read `/dev/fd0' (Input/output error)

how i can go about reading this data?

View 9 Replies View Related

Hardware :: Error Mounting Volume: An Error Occurred While Performing An Operation On Data Partition?

Oct 24, 2010

I have 2 hard drives on mu box 1st one is 500.0 MB ext4 Volume where I have my syste FC 13 and a 2nd one where I put my database files as follows 78.1 GB ext4 Volume usage = filesystem, format ext4

ih file browser, I can see an icon for a 80GB hard drive but whenever I double click I get the following


Error mounting volume: An error occured while performing an operation on data Partition 1 of ATA Maxtor <: <the operation failed

clicking details


Error mounting: mount exited with exit code 1: helper failed with:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error

when I type


dmesg | tail

I get


# dmesg | tail
[drm] nouveau 0000:01:00.0: Allocating FIFO number 3
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 3
[drm] nouveau 0000:01:00.0: Allocating FIFO number 4

What is very strange is that mysql works fine.In disk utility, it indicates that disk is healthy, but when I click check file system i get

File system check on "data" (Partition 1 of ATA MAXTOR STM380215A) completed File system is NOT clean

View 14 Replies View Related

Hardware :: [Data Recovery] No /dev/hda - Can't Find HD

Mar 28, 2010

I'm trying to recover my Western Digtal 500GB hd (connected through IDE), I've already succesfully recoverd 80GB with copyr.dma (didn't have a bigger IDE drive laying around). and want to do the rest of the drive with GNU ddrescue. I use the Parted Magic live cd to do this. The problem is that I can't find my HD, although it is listed when I look in the Hardware info app. How can I access it as /dev/hda or /dev/sda or whatever it wants?

View 9 Replies View Related

Fedora :: Error Value: Error Getting Repository Data For Installed

Mar 8, 2010

I am trying to update Fedora 12 but I always get this error.

Error Type: <class 'yum.Errors.RepoError'>Error Value: Error getting repository data for installed, repository not found File : /usr/share/PackageKit/helpers/yum/, line 3125, in <module> main() File : /usr/share/PackageKit/helpers/yum/, line 3122, in main


View 3 Replies View Related

General :: GNU Find: Disable The Error When 'find' Finds No Matches

Aug 21, 2011

I've got a setup where I need to use 'find' to find 0 or more files in a certain directory, however, 'find' always produces an error when there are no files that match a certain check. Is it possible to run 'find' while having it omit errors when no files match the pattern?

View 2 Replies View Related

Ubuntu :: Find Out Which Process Uploads A Lot Of Data

May 18, 2011

Sometimes I notice that there is high upload speeds for 10 minutes or so. At the time of the screenshot I was sitting in a public wireless place, only chromium was open and I don't see any reason why there should be sustained upload speeds.Is there a GUI or CLI so I can find out which process uses the internet?

View 1 Replies View Related

Ubuntu :: Find Data From Damaged Windows Using Cd Live?

Jan 16, 2011

Yesterday, my windows xp died and I can not do anything with that, but I would like to rescue my important files from hdd before format. I open ubuntu trial version from cd but i can not access my hdd. I find my hdd in system->administration->disk utility but I can not go anywhere from there.

When I solve this problem I would like to try ubuntu as my os but i am worried that some programs may not work on it . Like for example my bamboo tablet, fm2010, adobe ilustrator, autocad.

View 9 Replies View Related

General :: Find Soundcard Used By Alsa For Sending The Data?

Jun 1, 2011

I have slackware 13.0 installed in my system. how to find soundcard used by alsa for sending the data.

View 1 Replies View Related

General :: Script To Find Files By Data And Time?

Aug 6, 2010

We have a script that FTP files 3 times a day, once ant 02:30, 04:00 and 13:00. Once the process runs it puts a copy of the file sent in the processed folder. What I'm trying to do is check to see if the files are there and if not send an alert /email. The file names are IVF_20100806_*.150, PLAZ_ 20100806_*.151, TRAN_20100806_*.152 and TRAN_20100806_*.151

This is what I have

. ${HOME}/.bash_profile


View 2 Replies View Related

Software :: Unable To Find The Data That Controls The Speed Of Zaz?

Mar 11, 2011

I have searched but I have been unable to find the data that controls the speed of Zaz, does anyone know how to hack it so that an eighty-plus year old can play?

View 3 Replies View Related

Software :: Unable To Find Any Stored Data In Kwalletmanager

Oct 6, 2010

I'm probably doing something stupid, but I thought I'd ask here, because I'm stumped. I'm on slackware 12.2, KDE 3.5 and AIR 2.02.When Echofon abruptly stopped linux support, I switched to tweetdeck (v. It worked great, and they recently pushed a new update. I installed it, deleted the ELS directory in ~/.appdata/Adobe/AIR, and it was unable to find any stored data in kwalletmanager. (I got the error that it wasn't able to find any stored data and that AIR isn't installed properly--the error one gets when tweetdeck is started without kwalletmanager running.)

I deleted the entry in kwalletmanager for AIR, deleted the ELS directory again, and restarted it. Same error, and no new entry in kwalletmanager was made. I downgraded to the previous version (, and it worked perfectly once more.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved